R27179 SalesOrder - Check Customer Enterprise Company
Code | R27179 |
Entity | Crm.Sales.SalesOrders Entity |
Name | CheckCustomerEnterpriseCompany |
Attribute | Customer |
Layer | Back-End |
Events | Planned + |
Modify | NO |
Action | Validate that:
Customer.EnterpriseCompany == SalesOrder.EnterpriseCompany OR Customer.EnterpriseCompany == null |
Description | When the user sets the document state to Planned or higher, the system checks that if the
customer has enterprise company, then this enterprise company is equal to the document
enterprise company. If the customer has no enterprise company, then it is considered that this
customer is valid customer to all enterprise companies in the database and this is a valid
SalesOrder.
The idea of this business rule is to prevent the user to make Sales Orders to a customer which is not registered as such in the current enterprise company. When registering a customer, the user enters sales terms which the company will apply with the specified customer. |
Message | Customer's enterprise company is different than the document's enterprise company. |
Introduced In Version | 2017 |
Revocable | NO |
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.