diff --git a/intaro.intarocrm/classes/general/ICrmOrderActions.php b/intaro.intarocrm/classes/general/ICrmOrderActions.php index a69af5d0..6696c224 100755 --- a/intaro.intarocrm/classes/general/ICrmOrderActions.php +++ b/intaro.intarocrm/classes/general/ICrmOrderActions.php @@ -273,6 +273,9 @@ class ICrmOrderActions ); } + if($arFields['CANCELED'] == 'Y') + $arFields['STATUS_ID'] = $arFields['CANCELED']; + $resOrder = self::clearArr(array( 'contactName' => $resOrder['contactName'], 'phone' => $resOrder['phone'], @@ -287,6 +290,7 @@ class ICrmOrderActions 'orderType' => $arParams['optionsOrderTypes'][$arFields['PERSON_TYPE_ID']], 'deliveryType' => $arParams['optionsDelivTypes'][$resultDeliveryTypeId], 'status' => $arParams['optionsPayStatuses'][$arFields['STATUS_ID']], + 'statusComment' => $arFields['REASON_CANCELED'], 'deliveryAddress' => $resOrderDeliveryAddress, 'items' => $items )); diff --git a/intaro.intarocrm/install/version.php b/intaro.intarocrm/install/version.php index 979ac045..dcb85652 100755 --- a/intaro.intarocrm/install/version.php +++ b/intaro.intarocrm/install/version.php @@ -1,5 +1,5 @@ '0.3.5', - 'VERSION_DATE' => '2013-07-24 13:41:00', + 'VERSION_DATE' => '2013-07-24 16:38:00', ); diff --git a/intaro.intarocrm/install/version.php~ b/intaro.intarocrm/install/version.php~ deleted file mode 100755 index 39766b70..00000000 --- a/intaro.intarocrm/install/version.php~ +++ /dev/null @@ -1,5 +0,0 @@ - '0.4.5', - 'VERSION_DATE' => '2013-07-24 13:41:00', -); \ No newline at end of file