R34833 ProfitCenter - Check Hierarchy For Activation

Code R34833
Entity Finance.Accounting.ProfitCenters Entity
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 profit center can not be activated, if the parent profit center for that profit center is inactive.
Message Profit Center '{Name}' can not be activated. Its parent profit 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.