News:

Support the VirtueMart project and become a member

Main Menu

Issue with rounding on order with multiple products

Started by capricornio, September 06, 2012, 00:31:19 AM

Previous topic - Next topic

capricornio


I have the following issue in my VM 2.0.10 shop.
Products are added with costprices based on Ex VAT, where finalprices are calculated automatically based on Tax Rules. Prices on the webshop are shown correct.
Now someone ordered 3 different products:

SKU          Final Price incl VAT
--------------------------------------------------------------------------------
A0001       6,25
A0002     13,41
A0003     26,95
--------------------------------------------------------------------------------
           + 46,62 (total price, which differs 1 cent)

Since VM calculates with 5 decimals, the calculation is correct (real final prices are 6,25464 + 13,40892 + 26,95350 = 46,61706). But it looks rather silly on the invoice.

What's the best way to deal with this ? I can adjust all products to put in the correct price incl VAT and calculate the costprice, but this is a lot of work with a couple of hundred products and I guess when adding discounts on some of them will get me in the same problem.

Any ideas are welcome

abzamon

Hello,
I have the exact same pb, have you find a solution?

Sylvain

jenkinhill

Rounding has had further fixes in the current version, VM2.0.12
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum