[-] FO : #PSFV-813 - Fix bug with cart rule discount rounding price and price validator

This commit is contained in:
mDeflotte
2012-04-25 13:41:41 +00:00
parent e4f8e22216
commit b7af907d4b

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))