From: vladfo Date: Fri, 11 Oct 2024 10:17:28 +0000 (+0300) Subject: Выборка по type_id X-Git-Tag: 1.6~31^2~13 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=22bb46625b58812a27b5b6d5a76fe92976a3daff;p=erp24_rep%2Fyii-erp24%2F.git Выборка по type_id --- diff --git a/erp24/services/MotivationService.php b/erp24/services/MotivationService.php index 43774c2b..b19d6d7a 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']) ->where(['check_id' => $salesIds]) - + ->andWhere(['type_id' => 1]) ->asArray() ->all(); diff --git a/erp24/views/motivation/test-self-cost.php b/erp24/views/motivation/test-self-cost.php index ed434f7f..39883d26 100644 --- a/erp24/views/motivation/test-self-cost.php +++ b/erp24/views/motivation/test-self-cost.php @@ -55,7 +55,8 @@ $this->title = 'Себестоимость товаров по магазина - + +