]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Анализ товаров с историей
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Mon, 7 Apr 2025 07:11:55 +0000 (10:11 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Mon, 7 Apr 2025 07:11:55 +0000 (10:11 +0300)
erp24/views/category-plan/show-history-data.php

index bc6160d9faff8e75797b0a3eec4f6a255313f705..c408532b90cf6943ee957e8b497babcbab5e5049 100644 (file)
@@ -112,7 +112,12 @@ JS;
             <tbody>
             <?php foreach ($result['with_history'] as $product): ?>
                 <tr>
-                    <td><?= Html::encode($product['guid']) ?></td>
+                    <td>
+                        <?php
+                        $productModel = Products1c::find()->where(['id' => $product['guid']])->one();
+                        ?>
+                        <?= ($productModel !== null) ? Html::encode($productModel->name) : Html::encode($product['guid']) ?>
+                    </td>
                     <td>
                         <?php foreach ($product['weekly_sales'] as $month => $weekData): ?>
                             <strong><?= Html::encode($month) ?>:</strong>