Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- _refTableId
Type: TableId Extended Data Type
The reference table ID of the VendTransCashDisc record to find.
- _refRecId
Type: RefRecId Extended Data Type
The reference record ID of the VendTransCashDisc record to find.
- _useCashDisc
Type: UseCashDisc Enumeration
The cash discount rule used to find the cash discount record.
- _cashDiscDate
Type: TransDate Extended Data Type
The date used to find the cash discount record.
- _discGraceDays
Type: DiscGraceDays Extended Data Type
The number of grace days used to find the cash discount record; optional.
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.