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