LedgerVoucher.getMainAccountFromCache Method [AX 2012]
Gets the main account for the ledger dimension, accounting date, and posting type combination from the cache.
Syntax
public MainAccount getMainAccountFromCache(
RecId _ledgerDimension,
TransDate _accountingDate,
LedgerPostingType _postingType)
Run On
Server
Parameters
- _ledgerDimension
Type: RecId Extended Data Type
The ledger dimension.
- _accountingDate
Type: TransDate Extended Data Type
The accounting date.
- _postingType
Type: LedgerPostingType Enumeration
The posting type.
Return Value
Type: MainAccount Table
The main account if the ledger dimension, accounting date, and posting type combination is valid; otherwise, an empty record.