From f0aeabe505fa1cc2c742eba3606d5766c8fbbb48 Mon Sep 17 00:00:00 2001 From: gorokh Date: Fri, 1 Nov 2019 13:33:07 +0300 Subject: [PATCH] =?UTF-8?q?issues=20#78=20=D0=B2=20=D1=81=D0=BE=D0=B1?= =?UTF-8?q?=D1=8B=D1=82=D0=B8=D0=B8=20retailCrmAfterOrderSave=20=D0=B4?= =?UTF-8?q?=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=20externalId=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=BA=D0=B0=D0=B7=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php | 1 + 1 file changed, 1 insertion(+) diff --git a/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php b/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php index 9bd387fd..6f961a6a 100644 --- a/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php +++ b/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php @@ -823,6 +823,7 @@ class RetailCrmHistory } if (!$order['externalId']) { + $order["externalId"] = $newOrder->getId(); if (RCrmActions::apiMethod($api, 'ordersFixExternalIds', __METHOD__, array(array('id' => $order['id'], 'externalId' => $newOrder->getId()))) == false){ continue; }