Hi All,
I'm currently designing a new database for our company that needs to keep track of payments and thus receipts. Each receipt has associated with it a number of payments (e.g. cash, cc, cheque) as well as a number of items for which the payments are being made.
The complication I've hit arises from one of our business requirements which states that the contents of the receipt
must never change, i.e. if the receipt says product A $5 discount B -$2, it should still say that even if either item A or B changes price.
I've thought of two possible solutions to this problem:
- Store all product name/price/whatever changes as transactions, and have the database look up the appropriate details according to the time of the transaction
- Create hard copy receipt_item entries for each receipt that won't have their name/price change ever
I'm not particularly happy with either of these solutions; can anyone suggest a better method?
Thanks in advance,
Jonathan.