From b591e15b8d4b8ae79b489a8444d38b39e17491c6 Mon Sep 17 00:00:00 2001 From: vladfo Date: Fri, 11 Oct 2024 13:21:45 +0300 Subject: [PATCH] =?utf8?q?=D0=92=D1=8B=D0=B1=D0=BE=D1=80=D0=BA=D0=B0=20?= =?utf8?q?=D1=86=D0=B5=D0=BD=D0=B0=20=D0=B1=D0=BE=D0=BB=D1=8C=D1=88=D0=B5?= =?utf8?q?=200?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/services/MotivationService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.39.5