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:
commit
8bd474846d
@ -1,3 +1,6 @@
|
||||
## v2.5.1
|
||||
* Исправлена ошибка с некорректным значением скидки в заказе по истории
|
||||
|
||||
## v2.5.0
|
||||
* Добавлена возможность выгрузки брошенных корзин
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -39,7 +39,7 @@ class RetailCRM extends Module
|
||||
{
|
||||
$this->name = 'retailcrm';
|
||||
$this->tab = 'export';
|
||||
$this->version = '2.5.0';
|
||||
$this->version = '2.5.1';
|
||||
$this->author = 'Retail Driver LCC';
|
||||
$this->displayName = $this->l('RetailCRM');
|
||||
$this->description = $this->l('Integration module for RetailCRM');
|
||||
|
Loading…
x
Reference in New Issue
Block a user