R17342 Product - Product And Product Group Enterprise Company Are Different

Code R17342
Entity General.Products.Products Entity
Name ProductAndProductGroupEnterpriseCompanyAreDifferent
Attribute EnterpriseCompany
Layer Back-End
Events Commit
Priority Normal
Modify NO
Applicable Legislations ALL // no condition needed
Action If (ProductGroup != Null && ProductGroup.EnterpriseCompany != Null )

, validate that : EnterpriseCompany == ProductGroup.EnterpriseCompany
Description If the product group contains an enterprise company the product must have the same enterprise company.
Message Cannot save product with code '{PartNumber}', because it has invalid entry for Enterprise Company. When an enterprise company is specified for a product group, the products within this group should have the same enterprise company.
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.