Share via


LedgerConsolidate::initMainAccount Method [AX 2012]

Initializes the specified ledger account.

Syntax

client server public static MainAccountNum initMainAccount(
    CompanyId _companyId, 
    MainAccountNum _accountNum, 
    AccountName _accountName, 
    MainAccountNum _originalAccountNum, 
    boolean _useConsolidationAccount, 
   [MainAccountNum _errorAccount])

Run On

Called

Parameters

  • _useConsolidationAccount
    Type: boolean
    A Boolean value that indicates whether the subsidiary company main account has specific consolidated company account mapping.

Return Value

Type: MainAccountNum Extended Data Type
The initialized main account.

Exceptions

Exception Condition
Error

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

See Also

Reference

LedgerConsolidate Class