+----------------------+-----------------------------------------------------------------------------------------------+
| Code | R28700 |
+----------------------+-----------------------------------------------------------------------------------------------+
| Entity | @Crm.Sales.SalesOrders |
+----------------------+-----------------------------------------------------------------------------------------------+
| Name | PromotionalPackageProperlyAddedToSalesOrderPromotionalPackageTable |
+----------------------+-----------------------------------------------------------------------------------------------+
| Attribute | Line.PromotionalPackage |
+----------------------+-----------------------------------------------------------------------------------------------+
| Layer | Back-End |
+----------------------+-----------------------------------------------------------------------------------------------+
| Events | Releasing + |
+----------------------+-----------------------------------------------------------------------------------------------+
| Priority | Normal |
+----------------------+-----------------------------------------------------------------------------------------------+
| Modify | NO |
+----------------------+-----------------------------------------------------------------------------------------------+
| Action | Validate that: |
| |
|
| | if (SalesOrderLine.PromotionalPackage != null) |
| |
|
| | SalesOrderPromotionalPackage[SalesOrderLine.PromotionalPackage].Count() >0 |
+----------------------+-----------------------------------------------------------------------------------------------+
| Description | The PromotonalPackage in the sales order line specifies the package, based on which the line |
| | was added. If a line is added by a promotional package, this promotional package is required |
| | to be listed in the SalesOrder Promotional Package table. |
+----------------------+-----------------------------------------------------------------------------------------------+
| Message | Repeat the message for each line: |
| |
|
| | "Promotional package '{SalesOrderLine.PromotionalPackage}' in line {LineNo} does not exist |
| | in the sales order promotional packages table. |
| | All sales order lines which are part of promotional packages must be added through the |
| | SalesOrder Promotional Package table." |
| |
|
| | Sort Messages By Attribute: LineNo |
+----------------------+-----------------------------------------------------------------------------------------------+
| Introduced In | 2018.2 |
| Version | |
+----------------------+-----------------------------------------------------------------------------------------------+
| Revocable | NO |
+----------------------+-----------------------------------------------------------------------------------------------+
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.