Share via


VendTransCashDisc::findByUseCashDisc Method

Finds the VendTransCashDisc record for the specified table and record ID fields.

Syntax

client server public static VendTransCashDisc findByUseCashDisc(
    TableId _refTableId, 
    RefRecId _refRecId, 
    UseCashDisc _useCashDisc, 
    TransDate _cashDiscDate, 
   [DiscGraceDays _discGraceDays])

Run On

Called

Parameters

Return Value

Type: VendTransCashDisc Table
The VendTransCashDisc record found for the open transaction record.

Remarks

This method finds the first discount record with a date later than or equal to the date used to determine the discount if the _useCashDisc parameter is set to Normal or Always. If no record is found and the _useCashDisc parameter is set to Always, this method finds the last discount record by date.

See Also

Reference

VendTransCashDisc Table