R30596 SalesOrder - Set Pos Location
| Code | R30596 | 
| Entity | Crm.Sales.SalesOrders Entity | 
| Name | SetPosLocation | 
| Attribute | PosLocation | 
| Layer | Back-End | 
| Events | Commit | 
| Priority | Early | 
| Modify | YES | 
| Applicable Legislations | ALL // no condition needed | 
| Action | If ((PosLocation == NULL) && (EnterpriseCompanyLocation != NULL)
&& (PosLocations[(EnterpriseCompanyLocation = SalesOrder.EnterpriseCompanyLocation) &&
(Active = True)].Count() == 1)) , set value: PosLocation = PosLocations[(EnterpriseCompanyLocation = SalesOrder.EnterpriseCompanyLocation) && (Active = True)] | 
| Description | The rule sets POS Location - if the field is not yet filled in, the field Enterprise Company Location has a value and there is exactly one active POS Location with the same Enterprise Company Location as the Sales Order's Enterprise Company Location. | 
| Message | - | 
| Version | Introduced: 2019.1 Updated: - | 
| Revocable | NO | 
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.