R31531-10 Purchase Order Line - Set Quantity Unit (Recalc)

Code 31531-10
Entity Logistics.Procurement.PurchaseOrderLines Entity
Name SetQuantityUnit
Attribute QuantityUnit
Layer Front-End
Events AttributeChanged(ProductCode, Product, QuantityUnit)
Priority Early
Modify YES
Applicable Legislations ALL // no condition needed
Action ProductCode.CodingSystem.DefaultMeasurementUnit.IfNullThen(Product.PurchaseMeasurementUnit). IfNullThen(Product.MeasurementUnit).IfNullThen(QuantityUnit)
Description When Product Code or Product is changed, Quantity Unit should be updated. A new Quantity Unit is selected either from Product Code's Coding System Default MU, or if not specified, Purchase MU of the Product is selected, or if not specified, Product's MU is selected. If all of them are null, Quantity Unit is unchanged.
Message
Version
Revocable YES

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