1
0
mirror of synced 2024-11-22 21:36:10 +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 'optionsPayment' => $optionsPayment
); );
$result = ICrmOrderActions::orderCreate($ID, $api, $arParams, true); $arOrder = CSaleOrder::GetById($ID);
$result = ICrmOrderActions::orderCreate($arOrder, $api, $arParams, true);
if(!$result) { if(!$result) {
ICrmOrderActions::eventLog('ICrmOrderEvent::writeDataOnOrderCreate', 'ICrmOrderActions::orderCreate', 'error during creating order'); ICrmOrderActions::eventLog('ICrmOrderEvent::writeDataOnOrderCreate', 'ICrmOrderActions::orderCreate', 'error during creating order');