]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Заполнение данных активности
authorVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Wed, 30 Jul 2025 14:21:51 +0000 (17:21 +0300)
committerVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Wed, 30 Jul 2025 14:21:51 +0000 (17:21 +0300)
erp24/controllers/Products1cNomenclatureActualityController.php

index d2a6cfd900bb6d3f2aeae32390f4f6491a06ab38..e4601de314225c2901efdf5014f1667ab8311c08 100644 (file)
@@ -234,10 +234,10 @@ class Products1cNomenclatureActualityController extends Controller
             ->select('sp.product_id')
             ->from(['s' => 'sales'])
             ->innerJoin(['sp' => 'sales_products'], 's.id = sp.check_id')
-            ->andWhere(['s.store_id' => $storeIds])
+            //->andWhere(['s.store_id' => $storeIds])
             ->andWhere(['between', 's.date', "{$startDate} 00:00:00", "{$endDate} 23:59:59"])
             ->groupBy('sp.product_id')
-            ->having(['=', new \yii\db\Expression('COUNT(DISTINCT s.store_id)'), $countStores])
+            //->having(['=', new \yii\db\Expression('COUNT(DISTINCT s.store_id)'), $countStores])
             ->column();
 
         if (empty($productIds)) {