RetailGiftCardPostingParameters::getSalesOrderAccountNumber Method [AX 2012]
Method finds the main account number from the Items’ Item model groups’s Sales Order, Revenue account
Syntax
client server public static LedgerDimensionAccount getSalesOrderAccountNumber(DataAreaId _company, [DimensionDefault defaultDimension])
Run On
Called
Parameters
- _company
Type: DataAreaId Extended Data Type
DataAreaID of the Company to be retrieved.
- defaultDimension
Type: DimensionDefault Extended Data Type
default dimension for the account.
Return Value
Type: LedgerDimensionAccount Extended Data Type
Account number.
Remarks
DimensionAttributeValueCombination is a global table so query needs to include the DataAreaID.