OptimisticYid
Registered User.
- Local time
- Today, 08:12
- Joined
- Apr 8, 2008
- Messages
- 17
I have what I figure is a pretty standard format transaction log which is formed in part by three main tables - Order, Product and Transaction. Order can have many transactions, many transactions can have one product. Works well, produces a pretty invoice, feeds off into other tables as required but I have one 'simple' problem which is foxing me.
I can put in the price associated with the transaction manually, ideally i would read it in dynamically from the product table. This I can do but it leaves me with the problem that if a product price changes it will cascade throughout the whole system. So what I need to do is take the product price dynamically from the product table at the time of the transaction and store it as the price associated with the transaction, just not sure how best to achieve this.
Any help much appreciated as always.
I can put in the price associated with the transaction manually, ideally i would read it in dynamically from the product table. This I can do but it leaves me with the problem that if a product price changes it will cascade throughout the whole system. So what I need to do is take the product price dynamically from the product table at the time of the transaction and store it as the price associated with the transaction, just not sure how best to achieve this.
Any help much appreciated as always.