MainAccount::findByMainAccountId Method
Finds the specified record in the MainAccount table.
Syntax
client server public static MainAccount findByMainAccountId(
MainAccountNum _accountId,
[boolean _forUpdate,
RecId _chartOfAccounts])
Run On
Called
Parameters
- _accountId
Type: MainAccountNum Extended Data Type
The account number of the MainAccount record.
- _forUpdate
Type: boolean
A Boolean value that indicates whether to read the record for update; optional.
- _chartOfAccounts
Type: RecId Extended Data Type
The chart of the accounts that contain the main account; optional.
Return Value
Type: MainAccount Table
A record in the MainAccount table; otherwise, an empty record.
Remarks
If a chart of accounts is not specified, the chart of accounts for the primary ledger of the current company is used.