From d59fbe63d0d9957232540097259a5e8d74341db1 Mon Sep 17 00:00:00 2001 From: fomichev Date: Wed, 9 Apr 2025 10:46:49 +0300 Subject: [PATCH] =?utf8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BB=20=D0=BF=D0=BE?= =?utf8?q?=D0=B4=D1=81=D1=82=D0=B0=D1=82=D1=83=D1=81=20=D0=B8=D0=B7=20?= =?utf8?q?=D0=B7=D0=B0=D0=BF=D1=80=D0=BE=D1=81=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/api2/controllers/DataController.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/erp24/api2/controllers/DataController.php b/erp24/api2/controllers/DataController.php index 8833b5e1..8f74bdae 100644 --- a/erp24/api2/controllers/DataController.php +++ b/erp24/api2/controllers/DataController.php @@ -707,13 +707,11 @@ class DataController extends BaseController private function getMarketplaceNewOrders(): array { $statusId = MarketplaceOrderStatusTypes::find() ->where(['code' => 'PROCESSING'])->one()->id; - $substatusId = MarketplaceOrderStatusTypes::find() - ->where(['code' => 'STARTED'])->one()->id; + $marketplaceOrders = MarketplaceOrders::find() ->where([ 'status_1c' => MarketplaceOrders::STATUSES_1C_CREATED_IN_ERP, 'status_id' => $statusId, - 'substatus_id' => $substatusId, ])->andWhere([ 'between', 'creation_date', -- 2.39.5