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

Return Value

Type: MainAccount Table
The main account if the ledger dimension, accounting date, and posting type combination is valid; otherwise, an empty record.

See Also

Reference

LedgerVoucher Class