Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
Tested Ubercart 3.1 on a small european website.
Configured tax to display price including VAT.
Have to sell a product 10€ including VAT, so I fill 9.35 in the sell price field.
On the product page, my product have a 10€ price, so thats ok. But on the shopping cart page, if I buy 3 of them, I get that :
Product | Qty | Price |
---|---|---|
My product | 3 | 30.01€ Inc. VAT |
Subtotal : 30.01€
There is something wrong with the calculation... 10 x 3 = 30, not 30.01
Probably a rounding problem, did I miss an option to have a good VAT calculation for european shop or it's a known issue still not fixed ?
Comments
Comment #1
longwaveYour tax rate is (presumably) 7%, so 9.35 * 1.07 * 3 = 10.0045 * 3 = 30.0135 = 30.01 when rounded for display.
If you use 9.34579 as the sell price then 9.34579 * 1.07 * 3 = 29.9999859 = 30.00 when rounded for display.