From: vladfo Date: Fri, 11 Oct 2024 10:21:45 +0000 (+0300) Subject: Выборка цена больше 0 X-Git-Tag: 1.6~31^2~12 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=b591e15b8d4b8ae79b489a8444d38b39e17491c6;p=erp24_rep%2Fyii-erp24%2F.git Выборка цена больше 0 --- diff --git a/erp24/services/MotivationService.php b/erp24/services/MotivationService.php index b19d6d7a..3f7d0096 100644 --- a/erp24/services/MotivationService.php +++ b/erp24/services/MotivationService.php @@ -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();