+----------------------+----------------------------------------------------------------------------------------------+ | Code | 31531-17 | +----------------------+----------------------------------------------------------------------------------------------+ | Entity | @Logistics.Procurement.PurchaseOrderLines | +----------------------+----------------------------------------------------------------------------------------------+ | Name | SetStandardQuantityBase | +----------------------+----------------------------------------------------------------------------------------------+ | Attribute | [StandardQuantityBase]( | | | ../entities/Logistics.Procurement.PurchaseOrderLines.md#standardquantitybase) | +----------------------+----------------------------------------------------------------------------------------------+ | Layer | Front-End | +----------------------+----------------------------------------------------------------------------------------------+ | Events | AttributeChanged(Quantity, StandardQuantityBase, QuantityUnit, Product) | +----------------------+----------------------------------------------------------------------------------------------+ | Priority | Normal | +----------------------+----------------------------------------------------------------------------------------------+ | Modify | YES | +----------------------+----------------------------------------------------------------------------------------------+ | Applicable | ALL // no condition needed | | Legislations | | +----------------------+----------------------------------------------------------------------------------------------+ | Action | IIF((((Quantity == null) OrElse (QuantityUnit == null)) OrElse (Product == null)), | | | StandardQuantityBase, Quantity.ConvertTo(Product.BaseUnit, Product)) | +----------------------+----------------------------------------------------------------------------------------------+ | Description | When Quantity is changed, Standard Quantity Base is calculated as the converted value of | | | Quantity to the base Unit of the product. | +----------------------+----------------------------------------------------------------------------------------------+ | Message | | +----------------------+----------------------------------------------------------------------------------------------+ | Version | | +----------------------+----------------------------------------------------------------------------------------------+ | Revocable | YES | +----------------------+----------------------------------------------------------------------------------------------+
* This is auto generated code. Don't change it.