RetailStatementPost.accountSalesDisc Method [AX 2012]

Finds the ledger account for sales discount for the item and customer account passed as parameter.

public LedgerDimensionDefaultAccount accountSalesDisc(
    ItemId _itemId, 
    RetailItemGroupId _itemGroupId, 
    CustAccount _custAccount)

Run On

Server

Parameters

_itemId
Type: ItemId Extended Data Type
The current value of item ID.
_itemGroupId
Type: RetailItemGroupId Extended Data Type
The current value of Item group ID.
_custAccount
Type: CustAccount Extended Data Type
The current value of customer account.

Return Value

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

This method calls the accountItemLedgerDimension method to find the ledger account.

Show: