Skip to content

Latest commit

 

History

History
42 lines (40 loc) · 4.22 KB

R30316-9.md

File metadata and controls

42 lines (40 loc) · 4.22 KB

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

R30316-9 Invoice Order Line - Set Line Discount (Recalc)

+----------------------+----------------------------------------------------------------------------------------------+ | Code | 30316-9 | +----------------------+----------------------------------------------------------------------------------------------+ | Entity | @Crm.Invoicing.InvoiceOrderLines | +----------------------+----------------------------------------------------------------------------------------------+ | Name | SetLineDiscount | +----------------------+----------------------------------------------------------------------------------------------+ | Attribute | LineDiscount | +----------------------+----------------------------------------------------------------------------------------------+ | Layer | Front-End | +----------------------+----------------------------------------------------------------------------------------------+ | Events | AttributeChanged(Quantity, InvoiceOrder, Product, SalesOrder, DeliveryDate, DocumentDate, | | | Customer, EnterpriseCompany, EnterpriseCompanyLocation) | +----------------------+----------------------------------------------------------------------------------------------+ | Priority | Early | +----------------------+----------------------------------------------------------------------------------------------+ | Modify | YES | +----------------------+----------------------------------------------------------------------------------------------+ | Applicable | ALL // no condition needed | | Legislations | | +----------------------+----------------------------------------------------------------------------------------------+ | Action | DetermineLineDiscount(Convert((InvoiceOrder.DeliveryDate ?? InvoiceOrder.DocumentDate), | | | Nullable`1), InvoiceOrder.Customer, Product, Quantity, InvoiceOrder.EnterpriseCompany, | | | InvoiceOrder.EnterpriseCompanyLocation, IIF((SalesOrder == null), null, SalesOrder. | | | DistributionChannel), IIF((SalesOrder == null), null, SalesOrder.PriceList)) | +----------------------+----------------------------------------------------------------------------------------------+ | Description | | +----------------------+----------------------------------------------------------------------------------------------+ | Message | | +----------------------+----------------------------------------------------------------------------------------------+ | Version | | +----------------------+----------------------------------------------------------------------------------------------+ | Revocable | YES | +----------------------+----------------------------------------------------------------------------------------------+

* This is auto generated code. Don't change it.