nicksource
Registered User.
- Local time
- Today, 14:11
- Joined
- Feb 18, 2008
- Messages
- 69
I have a simple Goods in Goods out Database, it has a list of products, and then you can set which goods have come in, and which goods have gone out to a customer.
I want to keep the data for the customers, so I can look at a certain customer and see what goods they have had in the past and the total cost of these.
My only issue is, if I store the price along side the product, in the 'products' table. If the price was to ever change, all the prices for previous goods that have gone out to customers, will change to, which will make it innacurate.
I was thinking of having a new table for prices, then when a price is entered for a product it creates a new row with that price and instead of the product refering to its tables price, it refers to the 'price' table ID for it.
I hope that makes sense, any ideas?
Thanks.
I want to keep the data for the customers, so I can look at a certain customer and see what goods they have had in the past and the total cost of these.
My only issue is, if I store the price along side the product, in the 'products' table. If the price was to ever change, all the prices for previous goods that have gone out to customers, will change to, which will make it innacurate.
I was thinking of having a new table for prices, then when a price is entered for a product it creates a new row with that price and instead of the product refering to its tables price, it refers to the 'price' table ID for it.
I hope that makes sense, any ideas?
Thanks.