R31351-13 Purchase Order Line - Set Product Code (Recalc)

Code 31351-13
Entity Logistics.Procurement.PurchaseOrderLines Entity
Name SetProductCode
Attribute ProductCode
Layer Front-End
Events AttributeChanged(ProductCode, Product)
Priority Early
Modify YES
Applicable Legislations ALL // no condition needed
Action IIF(((ProductCode != null) AndAlso (Product != ProductCode.Product)), null, ProductCode)
Description When Product is changed, if Product Code's Product is different from the Product, Product Code is set to null.
Message
Version
Revocable YES

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