Share via


CustTransCashDisc::findByUseCashDisc Method

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

Syntax

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

Run On

Called

Parameters

Return Value

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

Remarks

This method finds the first discount record with a date greater 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

CustTransCashDisc Table