RetailStatementPost.accountTotalDisc Method [AX 2012]

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

Syntax

public LedgerDimensionDefaultAccount accountTotalDisc(CustAccount _custAccount, DiscAmount _totalDiscAmount)

Run On

Server

Parameters

Return Value

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

Exceptions

Exception Condition
Error

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

Remarks

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

See Also

Reference

RetailStatementPost Class