Hello,
I’m contacting you because I want to use Glide to build an ERP and track my stocks.
I have a project with several tables, including :
MP: A table listing all my raw materials needed to manufacture my products.
PI: A table listing my assembled products (so PI = an association of several MPs).
ACC: A table listing the accessories that go with my products (power supplies, instructions, etc.)
PF: A table listing the final SKUs (with associated EANs). A final SKU characterises an assembled product packaged with its accessories (so PF = PI + several ACCs).
In each of these tables, a row represents each item (so each ACC row represents an accessory), and the columns represent the quantities for each accessory, for example.
I have several PIs, with different MPs for each PI.
I’m looking to trigger production:
→ If I trigger a production run of 20 PI parts, this should therefore remove 20 parts from each MP associated with my PI (the MPs are associated by relationships with the PIs so, for example, the MP contains a relevant PI column) and add 20 PIs (from the product I’ve just assembled).
I can’t carry out this type of operation.
It’s quite simple to create an action that increments 20 POIs; actions with Increment numbers make it easy.
However, I can’t manage to count down the 20 MP.
My prediction is that the relationship that associates my PI with my MPs is a multiple relationship (because I need several MPs to make a PI). If I change my relationship column to a simple relationship, I will be able to use the Increment Numbers, but that does not do what I need.
I made a small diagram if it can make it easier to understand. I think this use case could apply to a lot of people, so I tried to clarify this as best as possible.
Do you have a solution to this please?