Partager via


Get Account from LedgerDimension

Long time than I'm not posting here :-)

Little peace of code that can help you : If you are using Ledger* table , you can have the field LedgerDimension (which extends LedgerDimensionAccount).

This field contain multiple information. For example the CustAccount.

To retreive the CustAccount from this field, use this piece of code

 custAccount = DimensionStorage::ledgerDimension2AccountNum(bankCodaAccountStatementLines.LedgerDimension);