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
- _companyId
Type: CompanyId Extended Data Type
The subsidiary company ID.
- _accountNum
Type: MainAccountNum Extended Data Type
The main account to initialize.
- _accountName
Type: AccountName Extended Data Type
The description of the main account to initialize.
- _originalAccountNum
Type: MainAccountNum Extended Data Type
The original main account associated with the account number.
- _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.
Exceptions
Exception | Condition |
---|---|
Error | The consolidation account was not found in the subsidiary company main account. |