Hi all, I've been lead to this forum because of this post:

Hi all,

I have a problem with a calculation rule for adding the tax to a net price.

Because all price values are rounded BEFORE the calculation is processed, I get rounding errors.

An example:

I want to have a gross price of 8.80€ (should be the salesPrice).

The net price is: 7.39496, and I have a calculation rule (type Tax) with a value of 19 (+%).

The problem:

In calculation.php (function getProductPrices(...)) all prices are rounded to 2 decimal places. Also the incoming price of the calculation!

So the following is done in method interpreteMathOp(...): (7.39 * 19 / 100) + 7.39 = 8.79€ -> not the expected result!

What is my mistake? Seems to be incorrect!?

Thank to all in advance

It's my exact problem. Only I'm using virtuemart 2.0 and he is using 1.14. My end prices should be prices like: 50,00 75,00 10,00 72,50 etc.

How can i solve this? No my prices are showing like 50,01, 74,99 etc. When i raise the tax with 1 cent my end-price raises two. So i can choose between 72,49 or 72,51. But not 72,50.

Somebody knows how to solve this?