R28322 SalesOrder - Promotional Package Enterprise Company Location

Code R28322
Entity Crm.Sales.SalesOrders Entity
Name PromotionalPackageEnterpriseCompanyLocation
Attribute EnterpriseCompanyLocation
Layer Back-End
Events Planning +
Modify NO
Action Validate that:

if SalesOrder.EnterpriseCompanyLocation has value than for all lines SalesOrderLine.PromotionalPackage.EnterpriseCompanyLocation == SalesOrder.EnterpriseCompanyLocation or SalesOrderLine.PromotionalPackage.EnterpriseCompanyLocation is null.

or

if SalesOrder.EnterpriseCompanyLocation == null than for all lines SalesOrderLine.PromotionalPackage.EnterpriseCompanyLocation == null
Description If in the current Sales Order the field Enterprise Company Location has value than in the selected Promotional Package the field Enterprise Company Location must be the same as Enterprise Company Location of the Sales Order or must be empty. And if in the current Sales Order the field Enterprise Company Location is null than in the selected Promotional Package the field Enterprise Company Location must be null too.
Message "The Enterprise Company Location of the selected Promotional Packages must be the same as Enterprise Company Location in document '{DocumentType} {DocumentNo}' or must be empty."
Introduced In Version 2018
Revocable NO

* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.