diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f4c336..e49290c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## v.3.3.2 +* Добавлен возврат остатка товара при отмене заказа + ## v.3.3.1 * Исправлен баг с передачей данных заказа в retailCRM при получении истории изменений от retailCRM diff --git a/VERSION b/VERSION index bea438e..4772543 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.3.1 +3.3.2 diff --git a/src/upload/admin/model/extension/retailcrm/history/v4_5.php b/src/upload/admin/model/extension/retailcrm/history/v4_5.php index 910577b..a6580dd 100644 --- a/src/upload/admin/model/extension/retailcrm/history/v4_5.php +++ b/src/upload/admin/model/extension/retailcrm/history/v4_5.php @@ -467,13 +467,13 @@ class ModelExtensionRetailcrmHistoryV45 extends ModelExtensionRetailcrmHistory $data['order_status_id'] = $tmpOrder['order_status_id']; } - $this->editOrder($order['externalId'], $data); - if (isset($this->settings[$this->moduleTitle . '_status_changes']) && $this->settings[$this->moduleTitle . '_status_changes'] ) { $this->opencartApiClient->addHistory($order['externalId'], $data['order_status_id']); } + + $this->editOrder($order['externalId'], $data); } }