LedgerJournalEngine.findOffsetLedgerDimension Method [AX 2012]
Gets the ledger dimension account to post a transaction with an offset account.
Syntax
public LedgerDimensionAccount findOffsetLedgerDimension(LedgerJournalTrans _ledgerJournalTrans, [LedgerJournalTrans_Asset _ledgerJournalTrans_Asset])
Run On
Called
Parameters
- _ledgerJournalTrans
Type: LedgerJournalTrans Table
The LedgerJournalTrans table buffer that stores the part of the transaction.
- _ledgerJournalTrans_Asset
Type: LedgerJournalTrans_Asset Table
The LedgerJournalTrans_Asset table buffer that stores a part of the transaction. This is an optional parameter that will only be used if the primary account is of type fixed assets.
Return Value
Type: LedgerDimensionAccount Extended Data Type
The ledger dimension account to post a transaction with a ledger offset account.
Remarks
If the transaction is intercompany, a no ledger dimension account is returned; some journal types also return a blank account.