R34822 CostCenter - Check Hierarchy For Deactivation
| Code | R34822 |
| Entity | Finance.Accounting.CostCenters Entity |
| Name | CheckHierarchyForDeactivation |
| Attribute | IsActive |
| Layer | Back-End |
| Events | Commit |
| Priority | Normal |
| Modify | NO |
| Applicable Legislations | ALL // no condition needed |
| Action | If (IsActive == False)
, validate that: CostCenter.All(SubCostCenter.IsActive == | False) |
| Description | The cost center can not be deactivated, if any of its child cost centers are active. |
| Message | The cost center {Name} can't be deactivated. It has active subcenters. | |
| Version | |
| Revocable | NO |
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.