R28393 SalesOrder - Check If Sold Promotional Package Appear In The Lines
| Code | R28393 | 
| Entity | Crm.Sales.SalesOrders Entity | 
| Name | CheckIfSoldPromotionalPackageAppearInTheLines | 
| Attribute | - | 
| Layer | Back-End | 
| Events | Releasing + | 
| Modify | NO | 
| Action | For each SalesOrderPromotionalPackage: If (SalesOrderPromotionalPackage.NumberOfPackages > 0) SalesOrderLines(PromotionalPackage == SalesOrderPromotionalPackage.PromotionalPackage).Count() > 0 | 
| Description | As described inĀ Promotional packages, the promotional packages are packages/set of products. So if a user sell a promotional package in a sales order, this promotional package must appear in the sales order lines. Packages with no lines are incorrect and such packages cannot be sold to the customers. | 
| Message | Promotional package '{SalesOrderPromotionalPackage.PromotionalPackage.Code}' with number of
packages {SalesOrderPromotionalPackage.NumberOfPackages} is not part of any of the sales
order lines. Sort Messages By Attribute: SalesOrderPromotionalPackage.PromotionalPackage.Code | 
| 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.