CustVendTransCashDisc::findByUseCashDisc Method

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

Syntax

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

Run On

Called

Parameters

  • _moduleCustVend
    Type: ModuleCustVend Enumeration
    A ModuleCustVend value that identifies the module for which the cash discount is retrieved.

Return Value

Type: CustVendTransCashDisc Map
The CustVendTransCashDisc record for the open transaction record.

Remarks

If the _useCashDisc parameter is set to Normal or Always, this method finds the first discount record with a date later than or equal to the date that is used to determine the discount. 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

CustVendTransCashDisc Map