Hello everyone,
Can anyone guide me, in how to overcome this obstacle I keep banging my head against?
Let me make a very simple example: The Tailor Shop
Table 1 - Incoming orders
Table 2 - Inventory
Table 3 - Material usage
Table 1 is integrated with our online store (via Zapier for example), and we are fetching all line items from orders. So, it could look like this:
In Table 2, we have our material inventory
In Table 3, we are determining how much material each line item needs
So far so good, but here comes my problem…
I know how to do the calculations, to basically subtract the amount of fabric used for the ‘Red dress’ and ‘Blue dress’ in Table 2.
So with 1 x ‘Red dress’ ordered, and 2 x ‘Blue dress’, that should leave our Table 2 at
But, let’s say that I run a very busy tailor shop with hundreds of orders each week. My Table 1 will quickly become very big with all the incoming orders.
But… If I then decide to delete all the orders that have the status “complete”, my inventory (Table 2) will no longer be correct since the Quantity column is calculated dynamically, (not shown in my examples to keep it simple).
So, how do I deal with this situation, so that I don’t have to keep all my line items in Table 1 forever?
I hope this makes sense, sorry for the long post!
Thanks!
–
Lars