]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Добавил check_id
authorvladfo <fvv2011@gmail.com>
Fri, 11 Oct 2024 09:45:20 +0000 (12:45 +0300)
committervladfo <fvv2011@gmail.com>
Fri, 11 Oct 2024 09:45:20 +0000 (12:45 +0300)
erp24/services/MotivationService.php
erp24/views/motivation/test-self-cost.php

index 65534d7ecd406ba265bf17967bc8c2a862651ba1..43774c2ba1236694ae988c079bbad26aae1d5297 100644 (file)
@@ -2004,6 +2004,7 @@ class MotivationService
                 'price' => $price,
                 'date' => $checkDate,
                 'quantity' => $quantity,
+                'check_id' => $product['check_id'],
             ];
         }
 
index 52d323f91c170a89225f34a5b704b1951adfb91f..ed434f7fe1d18359c1c0737516509dbd78f8d3a4 100644 (file)
@@ -44,6 +44,7 @@ $this->title = 'Себестоимость товаров по магазина
             <thead>
             <tr>
                 <th>ID товара</th>
+                <th>ID чека</th>
                 <th>Название</th>
                 <th>Цена</th>
                 <th>Кол-во</th>
@@ -53,7 +54,8 @@ $this->title = 'Себестоимость товаров по магазина
             <tbody>
             <?php foreach ($data as $item): ?>
                 <tr>
-                    <td><?= Html::encode($item['product_id']) ?></td>
+                    <td><?= Html::encode($item['product_id']) ?>
+                    </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>