diff --git a/CHANGELOG.md b/CHANGELOG.md index ac1b55c3..90192d23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2022-09-09 v.6.1.7 +- Корректировка получения истории удалённых товаров + ## 2022-09-07 v.6.1.6 - Корректировка редактирования данных пользователя Bitrix при выгрузке истории изменений diff --git a/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php b/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php index 2e3ce931..037d0dfc 100644 --- a/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php +++ b/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php @@ -1044,10 +1044,13 @@ class RetailCrmHistory } if ($product['delete'] && $collectItems[$product['offer']['externalId']]['quantity'] <= 0) { + if (is_int($item->getBasketCode())) { $deleteBasketInfo[] = $item->getBasketCode(); - $item->delete(); + } - continue; + $item->delete(); + + continue; } if ($product['quantity']) { diff --git a/intaro.retailcrm/description.ru b/intaro.retailcrm/description.ru index 8f280352..50b98d46 100644 --- a/intaro.retailcrm/description.ru +++ b/intaro.retailcrm/description.ru @@ -1 +1 @@ -- Корректировка редактирования данных пользователя Bitrix при выгрузке истории изменений \ No newline at end of file +- Корректировка получения истории удалённых товаров \ No newline at end of file diff --git a/intaro.retailcrm/install/version.php b/intaro.retailcrm/install/version.php index b6d0fa74..dd30929e 100644 --- a/intaro.retailcrm/install/version.php +++ b/intaro.retailcrm/install/version.php @@ -1,6 +1,6 @@ '6.1.6', - 'VERSION_DATE' => '2022-09-07 10:00:00' + 'VERSION' => '6.1.7', + 'VERSION_DATE' => '2022-09-09 15:00:00' ];