[-] FO : #PSTEST-993 - price validation do not allow prixe with 10 or more decimals
This commit is contained in:
@@ -398,7 +398,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 = $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->update();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user