1
0
mirror of synced 2025-02-16 15:03:14 +03:00

crm to bitrix type function

This commit is contained in:
Grisha Pomadchin 2014-02-10 12:25:18 +04:00
parent 98a6012fe5
commit 74fb142f05

View File

@ -375,6 +375,13 @@ class ICrmOrderActions
// pushing existing orders
foreach ($orderHistory as $order) {
// custom orderType functunion
if(function_exists('intarocrm_get_order_type_c')) {
$orderType = intarocrm_get_order_type_c($order);
if($orderType)
$optionsOrderTypes[$order['orderType']] = $orderType;
}
if(!isset($order['externalId']) || !$order['externalId']) {
// we dont need new orders without any customers (can check only for externalId)
@ -428,7 +435,6 @@ class ICrmOrderActions
continue;
}
// new order
$newOrderFields = array(
'LID' => $defaultSiteId,
@ -1106,8 +1112,8 @@ class ICrmOrderActions
}
// custom orderType functunion
if(function_exists('intarocrm_get_order_type')) {
$orderType = intarocrm_get_order_type($arFields);
if(function_exists('intarocrm_get_order_type_b')) {
$orderType = intarocrm_get_order_type_b($arFields);
if($orderType)
$resOrder['orderType'] = $orderType;
}