]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Фильтруем только созданные заказы
authorVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Mon, 13 Oct 2025 07:36:47 +0000 (10:36 +0300)
committerVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Mon, 13 Oct 2025 07:36:47 +0000 (10:36 +0300)
erp24/api2/controllers/OrdersController.php

index 66986f7362e493daa99aa6300541b113e9d86607..ddd97971a44ad8943f555762271ea4441d497bd4 100644 (file)
@@ -244,6 +244,7 @@ class OrdersController extends BaseController
                 ->with('items')
                 ->with('status1C')
                 ->where(['store_id' => $storeId])
+                ->andWhere(['status_1c' => MarketplaceOrders::STATUSES_1C_CREATED_IN_1C])
                 ->andWhere(['>=', 'creation_date', $startTime->format('Y-m-d H:i:s')])
                 ->andWhere(['<=', 'creation_date', $currentTime->format('Y-m-d H:i:s')])
                 ->orderBy(['id' => SORT_DESC])