This commit is contained in:
parent
e046a1d6f1
commit
be5d7ba33e
@ -1,3 +1,7 @@
|
|||||||
|
## 2022-12-28 v.6.1.12
|
||||||
|
- Исправление генерации пароля у корпоративного клиента
|
||||||
|
- Добавлена проверка на существование пользователя в заказе
|
||||||
|
|
||||||
## 2022-12-13 v.6.1.11
|
## 2022-12-13 v.6.1.11
|
||||||
- Добавление фильтрации не активных справочников и статусов
|
- Добавление фильтрации не активных справочников и статусов
|
||||||
|
|
||||||
|
@ -335,6 +335,7 @@ class RetailCrmHistory
|
|||||||
->setContragentTypes($contragentTypes)
|
->setContragentTypes($contragentTypes)
|
||||||
->setDataCrm($order)
|
->setDataCrm($order)
|
||||||
->build();
|
->build();
|
||||||
|
$corporateCustomerBuilder->getCustomerBuilder()->buildPassword();
|
||||||
|
|
||||||
if (RetailCrmOrder::isOrderCorporate($order)) {
|
if (RetailCrmOrder::isOrderCorporate($order)) {
|
||||||
// Fetch contact only if we think it's data is not fully present in order
|
// Fetch contact only if we think it's data is not fully present in order
|
||||||
|
@ -495,6 +495,16 @@ class RetailCrmOrder
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (empty($order['USER_ID'])) {
|
||||||
|
RCrmActions::eventLog(
|
||||||
|
'RetailCrmOrder::uploadOrders',
|
||||||
|
'Order::load',
|
||||||
|
'The user does not exist in order: ' . $order['ID']
|
||||||
|
);
|
||||||
|
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
self::createCustomerForOrder($api, $arCustomer, $arCustomerCorporate,$arParams, $order, $site);
|
self::createCustomerForOrder($api, $arCustomer, $arCustomerCorporate,$arParams, $order, $site);
|
||||||
|
|
||||||
if (isset($order['RESPONSIBLE_ID']) && !empty($order['RESPONSIBLE_ID'])) {
|
if (isset($order['RESPONSIBLE_ID']) && !empty($order['RESPONSIBLE_ID'])) {
|
||||||
@ -584,6 +594,16 @@ class RetailCrmOrder
|
|||||||
$optionsContragentType = RetailcrmConfigProvider::getContragentTypes();
|
$optionsContragentType = RetailcrmConfigProvider::getContragentTypes();
|
||||||
$user = UserTable::getById($order['USER_ID'])->fetch();
|
$user = UserTable::getById($order['USER_ID'])->fetch();
|
||||||
|
|
||||||
|
if (!$user) {
|
||||||
|
RCrmActions::eventLog(
|
||||||
|
'RetailCrmOrder::createCustomerForOrder',
|
||||||
|
'UserTable::getById',
|
||||||
|
'Error find user: ' . $order['USER_ID'] . ' in order: ' . $order['ID']
|
||||||
|
);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ('Y' === RetailcrmConfigProvider::getCorporateClientStatus()) {
|
if ('Y' === RetailcrmConfigProvider::getCorporateClientStatus()) {
|
||||||
if (true === RetailCrmCorporateClient::isCorpTookExternalId((string) $user['ID'], $api)) {
|
if (true === RetailCrmCorporateClient::isCorpTookExternalId((string) $user['ID'], $api)) {
|
||||||
RetailCrmCorporateClient::setPrefixForExternalId((string) $user['ID'], $api);
|
RetailCrmCorporateClient::setPrefixForExternalId((string) $user['ID'], $api);
|
||||||
|
@ -1 +1 @@
|
|||||||
- Исправление вывода значений в блоках маппинга (добавление фильтрации по активности поля)
|
- Исправление генерации пароля у корпоративного клиента, проверка существования пользователя в заказе
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
$arModuleVersion = [
|
$arModuleVersion = [
|
||||||
'VERSION' => '6.1.11',
|
'VERSION' => '6.1.12',
|
||||||
'VERSION_DATE' => '2022-12-13 12:30:00'
|
'VERSION_DATE' => '2022-12-28 17:30:00'
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user