The trouble with stock

ucozade

New member
Local time
Today, 09:51
Joined
Oct 16, 2006
Messages
9
Looking to see if anyone has any smart ideas?

I have a stock database and it is consisting of three parts. The first part is the parent. This is the complete item that people can buy. E.g a car.

The next level is a sub-parent. The pieces that go into making the car like the engine and wheels.

The lowest level is the parts that go into making these. Like the rubber, nuts and bolts.

I need it so that orders can be taken for the top level and for spares, the second level. When this occurs I need it so that the data base will take out the stock from the bottom level to build the pices for the higher levels.

E.g 1 car ordered is equal to 1 engine, 4 wheels and 1 car body.

1 engine is equal to 30 bolts and 50 kg of metal from stck and so on.

Then the same again but, with people only buying the engine.

How is it best that I relate through the tables to change the quantity of stock from the top to the bottom?
 

Users who are viewing this thread

Back
Top Bottom