Livid_Enema
New member
- Local time
- Today, 17:00
- Joined
- Aug 7, 2009
- Messages
- 5
Hi there
I have read through a number of posts concerning storing derived fields and I am aware it is a controversial issue, so I wouldn't mind getting some opinions on my scenario.
I am designing a database which stores client and invoice information and creates printable invoices using reports. Each client has a certain VAT code assigned to them, which has a certain VAT rate e.g. Code S1 = 21%
Recently, the VAT rate in my country changed from 21.5% to 21% and could change again in future. How would you recommend reflecting this in a database? Clients will still have one VAT code (and hence VAT rate) attached to them, but the VAT rate can change. I need to hold the rate used at time of invoicing, so if I call up an historic invoice it will show the VAT rate charged at the time, not the new one which it could have been changed to since.
I have read through a number of posts concerning storing derived fields and I am aware it is a controversial issue, so I wouldn't mind getting some opinions on my scenario.
I am designing a database which stores client and invoice information and creates printable invoices using reports. Each client has a certain VAT code assigned to them, which has a certain VAT rate e.g. Code S1 = 21%
Recently, the VAT rate in my country changed from 21.5% to 21% and could change again in future. How would you recommend reflecting this in a database? Clients will still have one VAT code (and hence VAT rate) attached to them, but the VAT rate can change. I need to hold the rate used at time of invoicing, so if I call up an historic invoice it will show the VAT rate charged at the time, not the new one which it could have been changed to since.