api changes fix
This commit is contained in:
parent
45c180c40e
commit
7cdda7aa11
@ -311,20 +311,20 @@ class ICrmOrderActions
|
||||
|
||||
if(!isset($order['externalId']) && !$order['externalId']) {
|
||||
|
||||
// we dont need new orders without any customers
|
||||
if(!isset($order['customer']) && !$order['customer'])
|
||||
// we dont need new orders without any customers (can check only for externalId)
|
||||
if(!isset($order['customer']['externalId']) && !$order['customer']['externalId'])
|
||||
continue;
|
||||
|
||||
// new order
|
||||
$newOrderFields = array(
|
||||
'LID' => $defaultSiteId, //<----!
|
||||
'PERSON_TYPE_ID' => $optionsOrderTypes[$order['orderType']], // <------!
|
||||
'LID' => $defaultSiteId,
|
||||
'PERSON_TYPE_ID' => $optionsOrderTypes[$order['orderType']],
|
||||
'PAYED' => 'N',
|
||||
'CANCELED' => 'N',
|
||||
'STATUS_ID' => 'N',
|
||||
'PRICE' => 0,
|
||||
'CURRENCY' => 'RUB',
|
||||
'USER_ID' => $order['customer'], // <--------!
|
||||
'USER_ID' => $order['customer']['externalId'],
|
||||
'PAY_SYSTEM_ID' => 0,
|
||||
'PRICE_DELIVERY' => 0,
|
||||
'DELIVERY_ID' => 0,
|
||||
@ -356,9 +356,11 @@ class ICrmOrderActions
|
||||
if(!$arFields || empty($arFields))
|
||||
continue;
|
||||
|
||||
$userId = $arFields['USER_ID'];
|
||||
if(isset($order['customer']) && $order['customer']) $userId = $order['customer'];
|
||||
$LID = $arFields['LID'];
|
||||
$userId = $arFields['USER_ID'];
|
||||
|
||||
if(isset($order['customer']['externalId']) && $order['customer']['externalId'])
|
||||
$userId = $order['customer']['externalId'];
|
||||
|
||||
$rsOrderProps = CSaleOrderPropsValue::GetList(array(), array('ORDER_ID' => $arFields['ID']));
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?
|
||||
$arModuleVersion = array(
|
||||
"VERSION" => "0.4.3",
|
||||
"VERSION_DATE" => "2013-10-30 16:04:00",
|
||||
"VERSION_DATE" => "2013-10-31 10:47:00",
|
||||
);
|
Loading…
Reference in New Issue
Block a user