diff --git a/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php b/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php index d356aaf5..8eef60b7 100644 --- a/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php +++ b/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php @@ -974,6 +974,10 @@ class RetailCrmHistory $orders[$change['order']['id']] = $change['order']; } + if ($change['field'] == 'number') { + $orders[$change['order']['id']]['number'] = $change['newValue']; + } + if ($change['item']) { if ($orders[$change['order']['id']]['items'][$change['item']['id']]) { $orders[$change['order']['id']]['items'][$change['item']['id']] = array_merge($orders[$change['order']['id']]['items'][$change['item']['id']], $change['item']); diff --git a/intaro.retailcrm/description.ru b/intaro.retailcrm/description.ru index 5f3b05c4..0f4f17aa 100644 --- a/intaro.retailcrm/description.ru +++ b/intaro.retailcrm/description.ru @@ -1 +1 @@ -- При обработке истории сбор по дублирующим товарам заменен на "externalId" +- Добавлена обработка изменения номера заказа по истории diff --git a/intaro.retailcrm/install/version.php b/intaro.retailcrm/install/version.php index df44f11f..0ad6624e 100644 --- a/intaro.retailcrm/install/version.php +++ b/intaro.retailcrm/install/version.php @@ -1,5 +1,5 @@ "2.5.3", - "VERSION_DATE" => "2019-11-1 15:10:00" + "VERSION" => "5.2.4", + "VERSION_DATE" => "2019-12-10 15:03:00" );