From 235ebd051ff01697c605a67e869a030b9e89e71a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9=20=D0=A7=D0=B0=D0=B7?= =?UTF-8?q?=D0=BE=D0=B2?= <45812598+Chazovs@users.noreply.github.com> Date: Fri, 28 Aug 2020 13:04:26 +0300 Subject: [PATCH] change method for add PAYED status (#127) --- .../classes/general/history/RetailCrmHistory_v5.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php b/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php index 35ddbcf7..ed6b851c 100644 --- a/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php +++ b/intaro.retailcrm/classes/general/history/RetailCrmHistory_v5.php @@ -1129,7 +1129,7 @@ class RetailCrmHistory } if (isset($order['fullPaidAt']) && is_string($order['fullPaidAt'])) { - $newOrder->setField('PAID', 'Y'); + $newOrder->setFieldNoDemand('PAYED', 'Y'); } if ($shipmentDeducted === 'Y') {