This is handled in two tables
- Items to order (here I manage the status of whether the product can be shipped or not)
- Orders
What I am looking for is to be able to have the sum of the total amount only of what is going to be shipped.
Currently I have a Rolllup type field in the orders table that brings the data of the items to order that makes me the sum of everything (shipment + pending to be shipped).
Is there a way to get the calculation only for those products that are marked to be shipped?