]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Выборка по type_id
authorvladfo <fvv2011@gmail.com>
Fri, 11 Oct 2024 10:17:28 +0000 (13:17 +0300)
committervladfo <fvv2011@gmail.com>
Fri, 11 Oct 2024 10:17:28 +0000 (13:17 +0300)
erp24/services/MotivationService.php
erp24/views/motivation/test-self-cost.php

index 43774c2ba1236694ae988c079bbad26aae1d5297..b19d6d7a3a7df93e5b5aee48e67eba623b5eb8bf 100644 (file)
@@ -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();
 
index ed434f7fe1d18359c1c0737516509dbd78f8d3a4..39883d267d5dc6323a29ac6a7e38e460002ad407 100644 (file)
@@ -55,7 +55,8 @@ $this->title = 'Себестоимость товаров по магазина
             <?php foreach ($data as $item): ?>
                 <tr>
                     <td><?= Html::encode($item['product_id']) ?>
-                    </td><td><?= Html::encode($item['check_id']) ?></td>
+                    </td>
+                    <td><?= Html::encode($item['check_id']) ?></td>
                     <td><?= Html::encode($item['product_name']) ?></td>
                     <td><?= Html::encode($item['price']) ?></td>
                     <td><?= Html::encode($item['quantity']) ?></td>