]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Добавить фильтр для исключения из продаж розницы чеков по маркетплейсам для дашборда...
authorAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Thu, 19 Feb 2026 09:13:35 +0000 (12:13 +0300)
committerAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Thu, 19 Feb 2026 09:13:35 +0000 (12:13 +0300)
erp24/services/SalesService.php

index 3dc0e94a2140f513adece017e8375e3a03fe5977..c446c17192a6e9b382f3f3da1ca3336a3a675db9 100755 (executable)
@@ -106,7 +106,8 @@ class SalesService
             ])
             ->joinWith('saleCheck')
             ->andWhere(['>=', 's.date', DateHelper::getDateTimeStartDay($dateFrom, true)])
-            ->andWhere(['<=', 's.date', DateHelper::getDateTimeEndDay($dateTo, true)]);
+            ->andWhere(['<=', 's.date', DateHelper::getDateTimeEndDay($dateTo, true)])
+            ->andWhere(['or', ['s.marketplace_order_id' => null], ['s.marketplace_order_id' => '']]);
 
         if (!$salesTotal) {
             if ($salesDelivery) {