]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Вернул только товары без компонентов
authorvladfo <fvv2011@gmail.com>
Fri, 11 Oct 2024 13:43:22 +0000 (16:43 +0300)
committervladfo <fvv2011@gmail.com>
Fri, 11 Oct 2024 13:43:22 +0000 (16:43 +0300)
erp24/services/MotivationService.php

index 371b30ef1167fd391a309cd45cba10ccb468e1f6..e3730f2f2c3de293013f2c856e06c6da46ea4cf9 100644 (file)
@@ -1962,7 +1962,7 @@ class MotivationService
         $salesProducts = SalesProducts::find()
             ->select(['check_id', 'product_id', 'quantity', 'price'])
             ->where(['check_id' => $salesIds])
-            //->andWhere(['type_id' => 1])
+            ->andWhere(['type_id' => 1])
             //    ->andWhere(['>', 'price',  '0'  ])
             ->asArray()
             ->all();