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

Добавлена передача параметра site для методоа получения списка заказов

This commit is contained in:
Alex Lushpai 2022-04-18 16:43:52 +03:00
parent 38e6ce092a
commit 243ec1ee99

View File

@ -179,7 +179,7 @@ class RetailCrmOrder
$length = 0;
if ('ordersEdit' === $methodApi) {
$response = RCrmActions::apiMethod($api, 'ordersGet', __METHOD__, $order['externalId']);
$response = RCrmActions::apiMethod($api, 'ordersGet', __METHOD__, $order['externalId'], $site);
if (isset($response['order'])) {
foreach ($response['order']['items'] as $k => $item) {
$externalId = $k .'_'. $item['offer']['externalId'];