added upd with methods
This commit is contained in:
parent
2de51507a7
commit
c6b9fe67c5
@ -601,10 +601,10 @@ class ICrmOrderActions
|
|||||||
'DATE_MARKED' => $order['markDatetime'],
|
'DATE_MARKED' => $order['markDatetime'],
|
||||||
'USER_ID' => $userId, //$order['customer']
|
'USER_ID' => $userId, //$order['customer']
|
||||||
'PAY_SYSTEM_ID' => $optionsPayTypes[$order['paymentType']],
|
'PAY_SYSTEM_ID' => $optionsPayTypes[$order['paymentType']],
|
||||||
'PAYED' => $optionsPayment[$order['paymentStatus']],
|
//'PAYED' => $optionsPayment[$order['paymentStatus']],
|
||||||
//'PERSON_TYPE_ID' => $optionsOrderTypes[$order['orderType']],
|
//'PERSON_TYPE_ID' => $optionsOrderTypes[$order['orderType']],
|
||||||
'DELIVERY_ID' => $optionsDelivTypes[$order['deliveryType']],
|
'DELIVERY_ID' => $optionsDelivTypes[$order['deliveryType']],
|
||||||
'STATUS_ID' => $optionsPayStatuses[$order['status']],
|
//'STATUS_ID' => $optionsPayStatuses[$order['status']],
|
||||||
'REASON_CANCELED' => $order['statusComment'],
|
'REASON_CANCELED' => $order['statusComment'],
|
||||||
'USER_DESCRIPTION' => $order['customerComment'],
|
'USER_DESCRIPTION' => $order['customerComment'],
|
||||||
'COMMENTS' => $order['managerComment']
|
'COMMENTS' => $order['managerComment']
|
||||||
@ -614,6 +614,11 @@ class ICrmOrderActions
|
|||||||
|
|
||||||
CSaleOrder::Update($order['externalId'], $arFields);
|
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();
|
$dateStart = new \DateTime();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user