CustVendOpenTransManager.determineCashDiscAmountToTake Method [AX 2012]

Determines the cash discount amount to take that corresponds to the open transaction in the transaction currency.

Syntax

protected CashDiscAmount determineCashDiscAmountToTake(CustVendTransOpen _custVendTransOpen, boolean _validateDiscOnCreditNote)

Run On

Called

Parameters

  • _custVendTransOpen
    Type: CustVendTransOpen Map
    The open transaction for which to get the cash discount amount.
  • _validateDiscOnCreditNote
    Type: boolean
    A Boolean value that indicates whether to validate if discounts are enabled on credit notes.

Return Value

Type: CashDiscAmount Extended Data Type
The cash discount amount to take for the open transaction.

Remarks

The cash discount to take is calculated as the discount amount minus the discount taken. The cash discount to take will be zero when the use cash discount is never, or the open transaction is a credit note and discount is not enabled on credit notes.

See Also

Reference

CustVendOpenTransManager Class