Skip to content

Commit

Permalink
Merge pull request #151 from sergeygw1990/master
Browse files Browse the repository at this point in the history
Fixes: #147 Возврат остатка товара при отмене заказа
  • Loading branch information
gwinn authored Apr 19, 2019
2 parents 4313505 + 1852d5c commit 39d596e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v.3.3.2
* Добавлен возврат остатка товара при отмене заказа

## v.3.3.1
* Исправлен баг с передачей данных заказа в retailCRM при получении истории изменений от retailCRM

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.1
3.3.2
4 changes: 2 additions & 2 deletions src/upload/admin/model/extension/retailcrm/history/v4_5.php
Original file line number Diff line number Diff line change
Expand Up @@ -467,13 +467,13 @@ protected function updateOrders($orders)
$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);
}
}

Expand Down

0 comments on commit 39d596e

Please sign in to comment.