RetailStatementPost.accountTotalDisc Method [AX 2012]

Finds the ledger account for the specified customer account and discount amount.

public LedgerDimensionDefaultAccount accountTotalDisc(CustAccount _custAccount, DiscAmount _totalDiscAmount)

Run On

Server

Parameters

_custAccount
Type: CustAccount Extended Data Type
The current value of customer account.
_totalDiscAmount
Type: DiscAmount Extended Data Type
The current value of the total discount amount.

Return Value

Type: LedgerDimensionDefaultAccount Extended Data Type
The ledger account to which total discount is posted.

ExceptionCondition
Error

The ledger account to which the total discount is to be posted is not found.

If the ledger account is not found the posting will be canceled.

Community Additions

ADD
Show: