mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-02 19:33:14 +03:00
fix discount rounding
This commit is contained in:
parent
6f55973ac7
commit
fac7d3706b
@ -887,7 +887,7 @@ class RetailcrmHistory
|
||||
) {
|
||||
$orderTotalProducts = $infoOrder['summ'];
|
||||
$deliveryCost = $infoOrder['delivery']['cost'];
|
||||
$totalDiscount = $deliveryCost + $orderTotalProducts - $totalPaid;
|
||||
$totalDiscount = round($deliveryCost + $orderTotalProducts - $totalPaid, 2);
|
||||
$orderCartRules = $orderToUpdate->getCartRules();
|
||||
|
||||
foreach ($orderCartRules as $valCartRules) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user