Hello,
I have a table as show below: the last row should calculate the total. Say the total of Milk for example.
The amount of Milk in each item’s own row is calculated by searching items:
Search recipe where product is this batch's product and ingredient is do a search for ingredients where name is "Milk" * This batch's quantity
.
Now I need to do that in the total row, but that’s really confusing now, because I don’t know how to multiply each batch’s quantity with its respective recipe’s ingredients—and not multiply all recipes with all quantities.
Any help?
Note: all products in this example are the same but in theory there are different products with each different recipes.