Skip to content

Latest commit

 

History

History
40 lines (38 loc) · 4 KB

R30505-9.md

File metadata and controls

40 lines (38 loc) · 4 KB

erp.type: front-end-business-rule erp.entity: Logistics.Procurement.ReceivingOrderLines

R30505-9 Receiving Order Line - Set Line Amount (Recalc)

+----------------------+----------------------------------------------------------------------------------------------+ | Code | 30505-9 | +----------------------+----------------------------------------------------------------------------------------------+ | Entity | @Logistics.Procurement.ReceivingOrderLines | +----------------------+----------------------------------------------------------------------------------------------+ | Name | SetLineAmount | +----------------------+----------------------------------------------------------------------------------------------+ | Attribute | LineAmount | +----------------------+----------------------------------------------------------------------------------------------+ | Layer | Front-End | +----------------------+----------------------------------------------------------------------------------------------+ | Events | AttributeChanged(ConfirmedQuantity, Quantity, PricePerUnit, LineAmount) | +----------------------+----------------------------------------------------------------------------------------------+ | Priority | Normal | +----------------------+----------------------------------------------------------------------------------------------+ | Modify | YES | +----------------------+----------------------------------------------------------------------------------------------+ | Applicable | ALL // no condition needed | | Legislations | | +----------------------+----------------------------------------------------------------------------------------------+ | Action | IIF((((ConfirmedQuantity ?? Quantity) == null) OrElse (PricePerUnit == null)), LineAmount, | | | ((ConfirmedQuantity ?? Quantity).Value * PricePerUnit).Round()) | +----------------------+----------------------------------------------------------------------------------------------+ | Description | The rule calculates Line Amount by multiplying quantity by price per unit. If price per | | | unit or quantity is null, the Line Amount is not calculated. | +----------------------+----------------------------------------------------------------------------------------------+ | Message | | +----------------------+----------------------------------------------------------------------------------------------+ | Version | | +----------------------+----------------------------------------------------------------------------------------------+ | Revocable | YES | +----------------------+----------------------------------------------------------------------------------------------+

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