1
0
mirror of synced 2024-11-25 14:56:09 +03:00

orderCreate fix

This commit is contained in:
Grisha Pomadchin 2013-08-05 15:39:37 +04:00
parent fb582a1752
commit 7fdddd5edf

View File

@ -80,7 +80,8 @@ class ICrmOrderEvent {
'optionsPayment' => $optionsPayment
);
$result = ICrmOrderActions::orderCreate($ID, $api, $arParams, true);
$arOrder = CSaleOrder::GetById($ID);
$result = ICrmOrderActions::orderCreate($arOrder, $api, $arParams, true);
if(!$result) {
ICrmOrderActions::eventLog('ICrmOrderEvent::writeDataOnOrderCreate', 'ICrmOrderActions::orderCreate', 'error during creating order');