Total quantity and scrap quantity in recipe ingredients
Let's say you want to see the total quantity of a material in a recipe, which would include the used quantity and the scrap rate. You would add the following calculated attribute:
Repository Name:Production.Technologies.RecipeIngredients
Name:TotalUsedQuantity
And the calculated attribute expressions are as follows:
10: ADD ATTRIB:UsageQuantityValue EXP:20
20: MULTIPLY ATTRIB:UsageQuantityValue ATTRIB:ScrapRate
Explanation:
- 10: Add the result from expression 20 to the attribute UsageQuantityValue
- 20: Multiply UsageQuantityValue and ScrapRate