+----------------------+-----------------------------------------------------------------------------------------------+
| Code | R29753 |
+----------------------+-----------------------------------------------------------------------------------------------+
| Entity | @Crm.Sales.SalesOrders |
+----------------------+-----------------------------------------------------------------------------------------------+
| Name | PosLocationRequired |
+----------------------+-----------------------------------------------------------------------------------------------+
| Attribute | PosLocation |
+----------------------+-----------------------------------------------------------------------------------------------+
| Layer | Back-End |
+----------------------+-----------------------------------------------------------------------------------------------+
| Events | Commit |
+----------------------+-----------------------------------------------------------------------------------------------+
| Priority | Normal |
+----------------------+-----------------------------------------------------------------------------------------------+
| Modify | NO |
+----------------------+-----------------------------------------------------------------------------------------------+
| **Applicable | ALL // no condition |
| Legislations** | needed |
+----------------------+-----------------------------------------------------------------------------------------------+
| Action | If (PosLocation == NULL && EnterpriseCompanyLocation != NULL) |
| |
|
| | , validate that: PosLocations[(EnterpriseCompanyLocation = |
| | SalesOrder.EnterpriseCompanyLocation) && (Active = True)].Count() = 0 |
+----------------------+-----------------------------------------------------------------------------------------------+
| Description | The POS Location field of the Sales Order could only be empty if the the Sales Order is |
| | created in a Enterprise Company Location for which there is no active POS Locations. |
+----------------------+-----------------------------------------------------------------------------------------------+
| Message | Sales Order '{DocumentText}' is created in an Enterprise Company Location that has an |
| | active POS Location but the field POS Location in this document does not contain a value. |
| |
|
| | Please enter a POS Location. |
+----------------------+-----------------------------------------------------------------------------------------------+
| Introduced In | 2019.1 |
| Version | |
| |
|
+----------------------+-----------------------------------------------------------------------------------------------+
| Revocable | NO |
+----------------------+-----------------------------------------------------------------------------------------------+
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.