1
0
mirror of synced 2024-11-22 05:16:09 +03:00

Merge pull request #91 from Evgeniy-Goroh/order_history

обработка номера заказа по истории
This commit is contained in:
Alex Lushpai 2019-12-20 14:34:45 +03:00 committed by GitHub
commit d475c95a01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View File

@ -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']);

View File

@ -1 +1 @@
- При обработке истории сбор по дублирующим товарам заменен на "externalId"
- Добавлена обработка изменения номера заказа по истории

View File

@ -1,5 +1,5 @@
<?
$arModuleVersion = array(
"VERSION" => "2.5.3",
"VERSION_DATE" => "2019-11-1 15:10:00"
"VERSION" => "5.2.4",
"VERSION_DATE" => "2019-12-10 15:03:00"
);