From 5e33d50f98a1e10cdd9dd3d1f0c077af51bb94f0 Mon Sep 17 00:00:00 2001 From: Grisha Pomadchin Date: Wed, 13 Nov 2013 22:58:53 +0400 Subject: [PATCH] fix summ null error --- intaro.intarocrm/classes/general/ICrmOrderActions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/intaro.intarocrm/classes/general/ICrmOrderActions.php b/intaro.intarocrm/classes/general/ICrmOrderActions.php index 2458d315..b89aa8af 100755 --- a/intaro.intarocrm/classes/general/ICrmOrderActions.php +++ b/intaro.intarocrm/classes/general/ICrmOrderActions.php @@ -608,7 +608,6 @@ class ICrmOrderActions // orderUpdate $arFields = self::clearArr(array( 'PRICE_DELIVERY' => $order['deliveryCost'], - 'PRICE' => $order['summ'] + (double) $order['deliveryCost'], 'DATE_MARKED' => $order['markDatetime'], 'USER_ID' => $userId, //$order['customer'] 'PAY_SYSTEM_ID' => $optionsPayTypes[$order['paymentType']], @@ -620,6 +619,9 @@ class ICrmOrderActions 'USER_DESCRIPTION' => $order['customerComment'], 'COMMENTS' => $order['managerComment'] )); + + if(isset($order['summ']) && $order['summ']) + $arFields['PRICE'] => $order['summ'] + (double) $order['deliveryCost']; $GLOBALS['INTARO_CRM_FROM_HISTORY'] = true;