mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-01 19:03:14 +03:00
Added saving builder errors in orders export (#212)
This commit is contained in:
parent
c5828e33a2
commit
6ccef81e9c
@ -1,3 +1,6 @@
|
||||
## v3.5.4
|
||||
* Доработано сохранение ошибок в экспорте заказов
|
||||
|
||||
## v3.5.3
|
||||
* Оптимизирован алгоритм получения истории заказов и клиентов
|
||||
|
||||
|
@ -184,8 +184,18 @@ class RetailcrmExport
|
||||
try {
|
||||
$orders[] = $orderBuilder->buildOrderWithPreparedCustomer();
|
||||
} catch (Exception $exception) {
|
||||
RetailcrmExportOrdersHelper::updateExportState(
|
||||
$record['id_order'],
|
||||
null,
|
||||
[$exception->getMessage()]
|
||||
);
|
||||
self::handleError($record['id_order'], $exception);
|
||||
} catch (Error $exception) {
|
||||
RetailcrmExportOrdersHelper::updateExportState(
|
||||
$record['id_order'],
|
||||
null,
|
||||
[$exception->getMessage()]
|
||||
);
|
||||
self::handleError($record['id_order'], $exception);
|
||||
}
|
||||
|
||||
|
@ -48,7 +48,7 @@ require_once dirname(__FILE__) . '/bootstrap.php';
|
||||
|
||||
class RetailCRM extends Module
|
||||
{
|
||||
const VERSION = '3.5.3';
|
||||
const VERSION = '3.5.4';
|
||||
|
||||
const API_URL = 'RETAILCRM_ADDRESS';
|
||||
const API_KEY = 'RETAILCRM_API_TOKEN';
|
||||
|
Loading…
x
Reference in New Issue
Block a user