From 0c423865e41eda264f81f956e997b27b8d203d40 Mon Sep 17 00:00:00 2001 From: Sergey Date: Wed, 17 Oct 2018 12:49:16 +0300 Subject: [PATCH] v2.3.12 --- CHANGELOG.md | 3 +++ .../classes/general/inventories/RetailCrmInventories.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9784a1c2..74d9249d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2018-10-17 v.2.3.12 +* Исрпавлена некорректная выгрузка остатков по складам + ## 2018-10-04 v.2.3.11 * Добавлен учет настроек часового пояса при создании заказа * Устранено удаление событий изменения оплат при переводе выгрузки на агент diff --git a/intaro.retailcrm/classes/general/inventories/RetailCrmInventories.php b/intaro.retailcrm/classes/general/inventories/RetailCrmInventories.php index a1ed85f9..1e8683b8 100644 --- a/intaro.retailcrm/classes/general/inventories/RetailCrmInventories.php +++ b/intaro.retailcrm/classes/general/inventories/RetailCrmInventories.php @@ -96,7 +96,7 @@ class RetailCrmInventories } $elems = array(); - $chunkStores = array_chunk($stores, 50); + $chunkStores = array_chunk($stores, 50, true); foreach ($chunkStores as $stores) { foreach ($products as $product) { if (count($product['offers']) > 0) {