1
0
mirror of synced 2024-11-25 14:56:09 +03:00
This commit is contained in:
gorokh 2021-01-13 17:51:36 +03:00
parent 797a4d41de
commit 12ae53cfea

View File

@ -1178,9 +1178,6 @@ class RetailCrmHistory
continue; continue;
} }
$paymentExternalId = $orderPayment->getId();
if ($paymentExternalId) {
$newHistoryPayments[$orderPayment->getField('XML_ID')]['externalId'] = $paymentExternalId; $newHistoryPayments[$orderPayment->getField('XML_ID')]['externalId'] = $paymentExternalId;
RCrmActions::apiMethod( RCrmActions::apiMethod(
$api, $api,
@ -1195,7 +1192,6 @@ class RetailCrmHistory
} }
} }
} }
}
if (!$order['externalId']) { if (!$order['externalId']) {
$order["externalId"] = $newOrder->getId(); $order["externalId"] = $newOrder->getId();