R30383-22 InvoiceLine - Set Zero Line Amount

Code 30383-22
Entity Crm.Invoicing.InvoiceLines Entity
Name SetZeroLineAmount
Attribute LineAmount
Layer Front-End
Events AttributeChanged(Quantity)
Priority Normal
Modify YES
Applicable Legislations ALL // no condition needed
Action IF(Quantity is null OR Quantity==0) LineAmount=0
Description When Quantity is changed to 0 or is set to null, Line Amount should be set to 0.
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.