+----------------------+-----------------------------------------------------------------------------------------------+
| Code | 30383-16 |
+----------------------+-----------------------------------------------------------------------------------------------+
| Entity | @Crm.Invoicing.InvoiceLines |
+----------------------+-----------------------------------------------------------------------------------------------+
| Name | ClearLineDiscountIfLineStandardDiscountPercent |
+----------------------+-----------------------------------------------------------------------------------------------+
| Attribute | LineDiscount |
+----------------------+-----------------------------------------------------------------------------------------------+
| Layer | Front-End |
+----------------------+-----------------------------------------------------------------------------------------------+
| Events | AttributeChanged(LineStandardDiscountPercent) |
+----------------------+-----------------------------------------------------------------------------------------------+
| Priority | Normal |
+----------------------+-----------------------------------------------------------------------------------------------+
| Modify | YES |
+----------------------+-----------------------------------------------------------------------------------------------+
| **Applicable | ALL // no condition needed |
| Legislations** | |
+----------------------+-----------------------------------------------------------------------------------------------+
| Action | if (LineDiscount != null AND LineDiscount.DiscountPercent != LineStandardDiscountPercent) |
| |
|
| | LineDiscount=null |
+----------------------+-----------------------------------------------------------------------------------------------+
| Description | If LineStandardDiscountPercent has changed, but it is not set from the Line Discount |
| | definition, the Line Discount should be emptied. |
+----------------------+-----------------------------------------------------------------------------------------------+
| Message | |
+----------------------+-----------------------------------------------------------------------------------------------+
| Version | Introduced: 2020 |
+----------------------+-----------------------------------------------------------------------------------------------+
| Revocable | YES |
+----------------------+-----------------------------------------------------------------------------------------------+
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.