I'm not sure if this is what you are thinking of, but it works:
Have one inventory table containing 1 record per item with the current quantity on hand, etc.
Have a common history table, to which a record is added by all movements which increment / decrement the on-hand. Define a type field with different values for each type of movement to aid analysis.
Then for each type of movement, update these two tables on saving a new transaction as appropriate.
Kevin
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only