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