[-] FO : #PSTEST-993 - price validation do not allow prixe with 10 or more decimals
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14148 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
f3812d05cb
commit
d1c3815f42
1 file changed
+1
-1
@@ -398,7 +398,7 @@ abstract class PaymentModuleCore extends Module
|
|||||||
|
|
||||||
$order->addCartRule($cart_rule['obj']->id, $cart_rule['obj']->name, $values);
|
$order->addCartRule($cart_rule['obj']->id, $cart_rule['obj']->name, $values);
|
||||||
|
|
||||||
$order->total_discounts = $order->total_discounts_tax_incl = $values['tax_incl'];
|
$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 = $values['tax_excl'];
|
||||||
$order->update();
|
$order->update();
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user