How have you come up with this calculation?
I always do a database update with a formula like this:
1) Times the base price by the old VAT rate (8.6870 * 1.15)
2) Divide the result by the new VAT rate (9.99/1.175)
Explain yours :)
Simple math to calculate required effect of taxation:
1.15/1.175 = 0.978723404255
Therefore keeping retail price the same:
base price = base price * 0.978723404255
Convert to sql statement:
update products set products_price = products_price*0.978723404255
Explain your calculation in an sql statement that is simpler than the above example? ;-)
Last edited by Calljj; 16 Jan 2010 at 09:53 AM.
Something like this...
UPDATE products SET price = (price*1.15) / 1.175
umm. no, thats not more simpler.. the numbers might look nicer, but it ain't simpler!
Hi,
Maybe somebody subscribed to this thread could help me with my issue.
See my thread
http://www.zen-cart.com/forum/showthread.php?t=150182
Bookmarks