From cda859ab307b2c99784c2ec8d7c1e43f78e26118 Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Wed, 25 Apr 2012 13:41:41 +0000 Subject: [PATCH] [-] FO : #PSFV-813 - Fix bug with cart rule discount rounding price and price validator git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14875 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/PaymentModule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/PaymentModule.php b/classes/PaymentModule.php index 675b9219c..b091cbc31 100644 --- a/classes/PaymentModule.php +++ b/classes/PaymentModule.php @@ -406,7 +406,7 @@ abstract class PaymentModuleCore extends Module $order->addCartRule($cart_rule['obj']->id, $cart_rule['obj']->name, $values); $order->total_discounts = $order->total_discounts_tax_incl = round($values['tax_incl'], 9); - $order->total_discounts_tax_excl = $values['tax_excl']; + $order->total_discounts_tax_excl = round($values['tax_excl'], 9); $order->update(); if ($id_order_state != Configuration::get('PS_OS_ERROR') && $id_order_state != Configuration::get('PS_OS_CANCELED') && !in_array($cart_rule['obj']->id, $cart_rule_used))