LedgerConsolidate::initAccount Method [AX 2012]

Initializes the specified ledger account.

client server public static MainAccountNum initAccount(
    CompanyId _companyId, 
    MainAccountNum _accountNum, 
    boolean _useConsolidationAccount, 
   [MainAccountNum _errorAccount])

Run On

Called

Parameters

_companyId
Type: CompanyId Extended Data Type
The subsidiary company ID.
_accountNum
Type: MainAccountNum Extended Data Type
The main account to initialize.
_useConsolidationAccount
Type: boolean
A Boolean value that indicates whether the subsidiary company main account has specific consolidated company account mapping.
_errorAccount
Type: MainAccountNum Extended Data Type
The error main account.

Return Value

Type: MainAccountNum Extended Data Type
The initialized main account.

ExceptionCondition
Error

The consolidation account was not found in the subsidiary company main account.

Show: