Skip to content

Latest commit

 

History

History
42 lines (40 loc) · 4.2 KB

R34836.md

File metadata and controls

42 lines (40 loc) · 4.2 KB

erp.type: business-rule erp.entity: Finance.Accounting.CostCenters

R34836 CostCenter - Check Hierarchy For Activation

+-----------------------------+---------------------------------------------------------------------------------------+ | Code | R34836 | +-----------------------------+---------------------------------------------------------------------------------------+ | Entity | @Finance.Accounting.CostCenters | +-----------------------------+---------------------------------------------------------------------------------------+ | Name | CheckHierarchyForActivation | +-----------------------------+---------------------------------------------------------------------------------------+ | Attribute | IsActive, Parent | +-----------------------------+---------------------------------------------------------------------------------------+ | Layer | Back-End | +-----------------------------+---------------------------------------------------------------------------------------+ | Events | Commit | +-----------------------------+---------------------------------------------------------------------------------------+ | Priority | Normal | +-----------------------------+---------------------------------------------------------------------------------------+ | Modify | NO | +-----------------------------+---------------------------------------------------------------------------------------+ | Applicable Legislations | ALL // no condition | | | needed | +-----------------------------+---------------------------------------------------------------------------------------+ | Action | If (IsActive == True) | | |

| | | , validate that: "Parent == NULL" OR "Parent.IsActive == True" | +-----------------------------+---------------------------------------------------------------------------------------+ | Description | The cost center can not be activated, if the parent cost center for that cost | | | center is inactive. | +-----------------------------+---------------------------------------------------------------------------------------+ | Message | Cost Center '{Name}' can not be activated. Its parent cost center is not active. | +-----------------------------+---------------------------------------------------------------------------------------+ | Version | | +-----------------------------+---------------------------------------------------------------------------------------+ | Revocable | NO | +-----------------------------+---------------------------------------------------------------------------------------+

* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.