+-----------------------------+---------------------------------------------------------------------------------------+
| Code | R31578 |
+-----------------------------+---------------------------------------------------------------------------------------+
| Entity | @Crm.ProductPrices |
+-----------------------------+---------------------------------------------------------------------------------------+
| Name | ProductPriceAndProductEnterpriseCompanyAreDifferent |
+-----------------------------+---------------------------------------------------------------------------------------+
| Attribute | Product |
+-----------------------------+---------------------------------------------------------------------------------------+
| Layer | Back-End |
+-----------------------------+---------------------------------------------------------------------------------------+
| Events | Commit |
+-----------------------------+---------------------------------------------------------------------------------------+
| Priority | Normal |
+-----------------------------+---------------------------------------------------------------------------------------+
| Modify | NO |
+-----------------------------+---------------------------------------------------------------------------------------+
| Applicable Legislations | ALL // no condition |
| | needed |
+-----------------------------+---------------------------------------------------------------------------------------+
| Action | Validate that: |
| |
|
| | - EnterpriseCompany == null OR |
| | - Product.EnterpriseCompany == null OR |
| | - EnterpriseCompany != null AND Product.EnterpriseCompany == EnterpriseCompany |
+-----------------------------+---------------------------------------------------------------------------------------+
| Description | Validates that the Enterprise Company of the Product Price is the same as the |
| | Enterprise Company оf the Product or one of them is empty. |
+-----------------------------+---------------------------------------------------------------------------------------+
| Message | Use the message from R17342-2-4 ServiceObject - Service Object And Product |
| | 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.