CustVendOpenTransManager.updateCashDiscAmount Method [AX 2012]
Updates the related records and balances for the specified open transaction for a change in the discount amount.
Syntax
public void updateCashDiscAmount(
CustVendTransOpen _custVendTransOpen,
[CustVendTransCashDisc _custVendTransCashDisc,
CashDiscAmount _updateDiscAmount])
Run On
Called
Parameters
- _custVendTransOpen
Type: CustVendTransOpen Map
The open transaction for which to make the related updates.
- _custVendTransCashDisc
Type: CustVendTransCashDisc Map
The cash discount transaction that captures the cash discount amount change; optional.
- _updateDiscAmount
Type: CashDiscAmount Extended Data Type
The changed cash discount amount; optional.
Remarks
If a cash discount transaction and updated cash discount amount are specified, the cash discount transaction is updated with the specified cash discount amount. If the associated open transaction is marked for settlement and the cash discount transaction that is updated is the applicable cash discount for the open transaction, the related records and balances are updated.