From: vladfo Date: Fri, 11 Oct 2024 13:43:22 +0000 (+0300) Subject: Вернул только товары без компонентов X-Git-Tag: 1.6~31^2~7 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=e28155b3166e694c855eadf66dd4eed608a15917;p=erp24_rep%2Fyii-erp24%2F.git Вернул только товары без компонентов --- diff --git a/erp24/services/MotivationService.php b/erp24/services/MotivationService.php index 371b30ef..e3730f2f 100644 --- a/erp24/services/MotivationService.php +++ b/erp24/services/MotivationService.php @@ -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();