From c6b9fe67c56d455cc53abddc5702697a13f0bd76 Mon Sep 17 00:00:00 2001 From: Grisha Pomadchin Date: Sat, 9 Nov 2013 01:12:20 +0400 Subject: [PATCH] added upd with methods --- intaro.intarocrm/classes/general/ICrmOrderActions.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/intaro.intarocrm/classes/general/ICrmOrderActions.php b/intaro.intarocrm/classes/general/ICrmOrderActions.php index 409a3e75..1a4d4b01 100755 --- a/intaro.intarocrm/classes/general/ICrmOrderActions.php +++ b/intaro.intarocrm/classes/general/ICrmOrderActions.php @@ -601,10 +601,10 @@ class ICrmOrderActions 'DATE_MARKED' => $order['markDatetime'], 'USER_ID' => $userId, //$order['customer'] 'PAY_SYSTEM_ID' => $optionsPayTypes[$order['paymentType']], - 'PAYED' => $optionsPayment[$order['paymentStatus']], + //'PAYED' => $optionsPayment[$order['paymentStatus']], //'PERSON_TYPE_ID' => $optionsOrderTypes[$order['orderType']], 'DELIVERY_ID' => $optionsDelivTypes[$order['deliveryType']], - 'STATUS_ID' => $optionsPayStatuses[$order['status']], + //'STATUS_ID' => $optionsPayStatuses[$order['status']], 'REASON_CANCELED' => $order['statusComment'], 'USER_DESCRIPTION' => $order['customerComment'], 'COMMENTS' => $order['managerComment'] @@ -614,6 +614,11 @@ class ICrmOrderActions CSaleOrder::Update($order['externalId'], $arFields); + // set STATUS_ID + CSaleOrder::StatusOrder($order['externalId'], $optionsPayStatuses[$order['status']]); + // set PAYED + CSaleOrder::PayOrder($order['externalId'], $optionsPayment[$order['paymentStatus']]); + $dateStart = new \DateTime(); } }