Fix discount rounding

This commit is contained in:
Alex Lushpai 2020-04-14 12:25:59 +03:00 committed by GitHub
commit 8bd474846d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,6 @@
## v2.5.1
* Исправлена ошибка с некорректным значением скидки в заказе по истории
## v2.5.0
* Добавлена возможность выгрузки брошенных корзин

View File

@ -1 +1 @@
2.5.0
2.5.1

View File

@ -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) {

View File

@ -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');