Skip to content

Latest commit

 

History

History
42 lines (40 loc) · 4.27 KB

R30383-16.md

File metadata and controls

42 lines (40 loc) · 4.27 KB

erp.type: front-end-business-rule erp.entity: Crm.Invoicing.InvoiceLines

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

+----------------------+-----------------------------------------------------------------------------------------------+ | 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.