R31603 LineDiscount - Enterprise Company
| Code | R31603 |
| Entity | Crm.Pricing.LineDiscounts Entity |
| Name | EnterpriseCompany |
| Attribute | Product ProductGroup EnterpriseCompany |
| Layer | Back-End |
| Events | Commit |
| Priority | Normal |
| Modify | NO |
| Applicable Legislations | ALL // no condition needed |
| Action | Validate that:
LineDiscount.EnterpriseCompany == null OR (LineDiscount.EnterpriseCompany != null AND (LineDiscount.Product == null OR LineDiscount.Product.EnterpriseCompany == LineDiscount.EnterpriseCompany OR LineDiscount.Product.EnterpriseCompany == null) AND (LineDiscount.ProductGroup == null OR LineDiscount.ProductGroup.EnterpriseCompany == null OR LineDiscount.ProductGroup.EnterpriseCompany == LineDiscount.EnterpriseCompany)) |
| Description | Validates that the Enterprise Company of the Line Discount is the same as the Enterprise Company of the product and the product group. |
| Message | Enterprise Company is different from the Enterprise Company оf the product or the
product group.
Message is also used in: R31605 ProductSupply - Product Supply And Product Group Enterprise Company Are Different |
| Version | Introduced: 21 |
| Revocable | NO |
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.