Ledger::allowAccountStructureRemoval Method
Provides a single point where consumers can update code to optionally prevent the removal of an account structure from the ledger.
Syntax
client server public static boolean allowAccountStructureRemoval(DimensionHierarchy _dimensionHierarchy, [LedgerRecId _ledger])
Run On
Called
Parameters
- _dimensionHierarchy
Type: DimensionHierarchy Table
The account structure that is being removed.
- _ledger
Type: LedgerRecId Extended Data Type
The ledger from which the structure is being removed; optional.
Return Value
Type: boolean
true to allow the removal to continue; otherwise, false.
Remarks
If a consumer prevents the removal of the account structure, that consumer must present a notification to inform the user that the removal did not occur and explain why.