best practice for storing price of an item in database ?
In the UK we call sales tax, VAT, which is currently 17.5%
I store the ex-VAT price in the database
I store the current VAT rate for the UK as an application variable (VAT rate is set to change here in the UK in January)
Whenever the website display the price of an item (which includes VAT), it takes the ex-VAT price and adds the VAT dynamically.
I have a section in the website called 'Personal Shopper' which will happily search for goods in a fixed priced range eg. one link is under £20, another is £20-£50
This means my search query has to perform the VAT calculation for each item. Is this practice normal, or is it better to have a database column that stores the price including VAT ?
