fix order upload error during installation (#125)
This commit is contained in:
parent
346a0ea5fe
commit
ecb845546d
@ -1,3 +1,6 @@
|
|||||||
|
## 2020-08-26 v.5.4.4
|
||||||
|
* Исправлена ошибка при установке модуля
|
||||||
|
|
||||||
## 2020-08-25 v.5.4.3
|
## 2020-08-25 v.5.4.3
|
||||||
* Исправлена ошибка с некорректным ID товара при редактировании заказа
|
* Исправлена ошибка с некорректным ID товара при редактировании заказа
|
||||||
* Исправлены опечатки в API-клиенте retailCRM
|
* Исправлены опечатки в API-клиенте retailCRM
|
||||||
|
@ -349,45 +349,6 @@ class ApiClient
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Edit a customer corporate
|
|
||||||
*
|
|
||||||
* @param array $customer customer data
|
|
||||||
* @param string $by (default: 'externalId')
|
|
||||||
* @param string $site (default: null)
|
|
||||||
*
|
|
||||||
* @throws \InvalidArgumentException
|
|
||||||
* @throws \RetailCrm\Exception\CurlException
|
|
||||||
* @throws \RetailCrm\Exception\InvalidJsonException
|
|
||||||
*
|
|
||||||
* @return ApiResponse
|
|
||||||
*/
|
|
||||||
public function customersCorporateEdit(array $customer, $by = 'externalId', $site = null)
|
|
||||||
{
|
|
||||||
if (!count($customer)) {
|
|
||||||
throw new \InvalidArgumentException(
|
|
||||||
'Parameter `customer` must contains a data'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->checkIdParameter($by);
|
|
||||||
|
|
||||||
if (!array_key_exists($by, $customer)) {
|
|
||||||
throw new \InvalidArgumentException(
|
|
||||||
sprintf('Customer array must contain the "%s" parameter.', $by)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this->client->makeRequest(
|
|
||||||
sprintf('/customers-corporate/%s/edit', $customer[$by]),
|
|
||||||
Client::METHOD_POST,
|
|
||||||
$this->fillSite(
|
|
||||||
$site,
|
|
||||||
array('customerCorporate' => json_encode($customer), 'by' => $by)
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Get customers corporate history
|
* Get customers corporate history
|
||||||
*
|
*
|
||||||
|
@ -1,3 +1 @@
|
|||||||
- Исправлена ошибка с некорректным ID товара при редактировании заказа
|
- Исправлена ошибка при установке модуля
|
||||||
- Исправлены опечатки в API-клиенте retailCRM
|
|
||||||
- Добавлена фильтрация изменений истории по текущему API-ключу
|
|
||||||
|
@ -38,6 +38,6 @@ CModule::AddAutoloadClasses(
|
|||||||
'AddressBuilder' => 'classes/general/AddressBuilder.php',
|
'AddressBuilder' => 'classes/general/AddressBuilder.php',
|
||||||
'AbstractBuilder' => 'classes/general/AbstractBuilder.php',
|
'AbstractBuilder' => 'classes/general/AbstractBuilder.php',
|
||||||
'BaseModel' => 'classes/general/Model/BaseModel.php',
|
'BaseModel' => 'classes/general/Model/BaseModel.php',
|
||||||
'RetailCrmService' => 'classes/general/services/RetailCrmService.php',
|
'RetailCrmService' => 'classes/general/services/RetailCrmService.php'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -141,6 +141,7 @@ class intaro_retailcrm extends CModule
|
|||||||
include($this->INSTALL_PATH . '/../classes/general/Exception/CurlException.php');
|
include($this->INSTALL_PATH . '/../classes/general/Exception/CurlException.php');
|
||||||
include($this->INSTALL_PATH . '/../classes/general/RestNormalizer.php');
|
include($this->INSTALL_PATH . '/../classes/general/RestNormalizer.php');
|
||||||
include($this->INSTALL_PATH . '/../classes/general/Logger.php');
|
include($this->INSTALL_PATH . '/../classes/general/Logger.php');
|
||||||
|
include($this->INSTALL_PATH . '/../classes/general/services/RetailCrmService.php');
|
||||||
|
|
||||||
$version = COption::GetOptionString($this->MODULE_ID, $this->CRM_API_VERSION, 0);
|
$version = COption::GetOptionString($this->MODULE_ID, $this->CRM_API_VERSION, 0);
|
||||||
if ($version == 'v4') {
|
if ($version == 'v4') {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?
|
<?
|
||||||
$arModuleVersion = array(
|
$arModuleVersion = array(
|
||||||
"VERSION" => "5.4.3",
|
"VERSION" => "5.4.4",
|
||||||
"VERSION_DATE" => "2020-08-25 11:20:00"
|
"VERSION_DATE" => "2020-08-26 10:50:00"
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user