R20400-2 ProductGroup - Check Hierarchy For Deactivation
| Code | R20400-2 |
| Entity | General.Products.ProductGroups Entity |
| Name | CheckHierarchyForDeactivation |
| Attribute | Active |
| Layer | Back-End |
| Events | Commit |
| Priority | Normal |
| Modify | NO |
| Applicable Legislations | ALL // no condition needed |
| Action | If (Active == False)
, validate that: ProductGroup.All(SubProductGroup.Active == False) AND ProductGroup.Products.All(Product.Active == False) |
| Description | The product group can not be deactivated, if any of its child groups or products are active. |
| Message | The product group '{Code}: {Name}' can't be deactivated. It has either active subgroups or active products. |
| Version | Introduced: 2015 |
| Revocable | NO |
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.