Magento – the status of rounding issues in 1.7

ce-1.7.0.2germanyrounding

We are using Magento CE 1.7 and have various rounding issues. In various calculations there is a 0,01 EUR difference.

The basic issue might be that the article-prices are incl. tax.

Co-programmers overwrote the Mage_Core_Model_Store::roundPrice() method to calculate with 4 digits precision. But this seems to cause issues with PayPal payments.

Is there a solution for those problems?

EDIT:

We actually tried an official core patch which basically adds 4-digit rounding to \Mage_Tax_Model_Sales_Total_Quote_Shipping::_round, \Mage_Tax_Model_Sales_Total_Quote_Subtotal::_deltaRound and \Mage_Tax_Model_Sales_Total_Quote_Tax::_deltaRound which fixes a coupon rounding issue but not the PayPal problem.

Best Answer

We are aware of several rounding issues within the core Magento tax module that cover scenarios that have been described. Presently we're working on those issues for an upcoming 1.13 release. Those rounding issues are triggering a simple Paypal check that determines if the line items in the cart add up correctly. It looks like Fabian's patch takes care of the Paypal check in the short term.

If you have any questions, comments, or suggestions on how we can improve the Magento Tax module please don't hesitate to contact me as I'm the product manager responsible for taxes.

Regards, Chuck