For some combinations of price incl. VAT and VAT rate the order preview doesn't sum up correctly. The following rates are affected: 4%, 12% and 20%. So we can expect shops from Austria, Bulgaria, Estonia, Italy, Portugal and Slovenia to show this problem.

This cannot be solved by increasing the significant digits in the database. A decision needs to be made about what value is rounded up and what value is rounded down. Alternatively these shops could show 3 decimal places to the customers.

Here some sources for a potential answer:
UK Government:
http://customs.hmrc.gov.uk/channelsPortalWebApp/channelsPortalWebApp.por...
Austrian Government: (in German, look for "21.08.2009: Rundungsdifferenz Umsatzsteuer", answer pending)
http://www.help.gv.at/fuapublic/appl/foren-flow?id=80&zielgruppe=unterne...

Comments

frost’s picture

in ireland our top rate is 21.5% and i am finding rounding errors too. looks like the amount is stored internally with more than 2 decimal places but is displayed rounded to 2 places. in any case the order totals are wrong if you individually add up all the items in the order using the price as displayed in the invoice.

frost’s picture

Version: 6.x-1.x-dev » 6.x-1.0-rc7
xibun’s picture

@frost: your problem is not related to the rounding problem mentioned in this post. please open a new issue with more details about what exactly you are seeing. also make sure you are using the latest versions (meaning dev) of Ubercart and uc_vat!

xibun’s picture

Version: 6.x-1.0-rc7 » 6.x-1.x-dev