[-] 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
This commit is contained in:
mDeflotte
2012-04-25 13:41:41 +00:00
parent 4cdb580608
commit cda859ab30
+1 -1
View File
@@ -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))