LedgerTmpAccountCategoryLink.save Method
Saves changes back to the MainAccount table by updating the account category on each ledger account to the one specified if it is checked or by removing the current category if it is unchecked.
Syntax
public boolean save(
AccountCategoryRef _accountCategoryRefToAssign,
AccountCategory _accountCategoryName,
[RecId _currentLedgerCOARecId])
Run On
Called
Parameters
- _accountCategoryRefToAssign
Type: AccountCategoryRef Extended Data Type
The account category to assign to the main account if it is currently checked.
- _accountCategoryName
Type: AccountCategory Extended Data Type
The account category name that is assigned to the main account.
- _currentLedgerCOARecId
Type: RecId Extended Data Type
The LedgerChartOfAccounts record id related to the main account.
Return Value
Type: boolean
true if the save process was successful; otherwise, false.
Remarks
The save process can fail (save method returns false) if the account category has been deleted or closed.