R31356-8 Work Order Item Ingredient - Set Used Quantity

Code 31356-8
Entity Production.ShopFloor.WorkOrderItemIngredients Entity
Name SetUsedQuantity
Attribute Material
Layer Front-End
Events AttributeChanged(FixedScrapQuantity)
Priority Normal
Modify YES
Applicable Legislations ALL // no condition needed
Action IF(UsedQuantity!=null)

UsedQuantity = UsedQuantity - FixedScrapQuantityOldValue + FixedScrapQuantityNewValue
Description When Fixed Scrap Quantity is changed, Used Quantity is changed with the difference between the old value of the Fixed Scrap Quantity and its new value. If one of the values is null, it is substituted by 0 in the calculation.
Message
Version Introduced: 21

Updated: -
Revocable YES

* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.