R30383-16 InvoiceLine - Clear Line Discount If Line Standard Discount Percent

Code 30383-16
Entity Crm.Invoicing.InvoiceLines Entity
Name ClearLineDiscountIfLineStandardDiscountPercent
Attribute LineDiscount
Layer Front-End
Events AttributeChanged(LineStandardDiscountPercent)
Priority Normal
Modify YES
Applicable Legislations ALL // no condition needed
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.