]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Выборка цена больше 0
authorvladfo <fvv2011@gmail.com>
Fri, 11 Oct 2024 10:21:45 +0000 (13:21 +0300)
committervladfo <fvv2011@gmail.com>
Fri, 11 Oct 2024 10:21:45 +0000 (13:21 +0300)
erp24/services/MotivationService.php

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