]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Добавил цену в таблицу origin/feature_filippov_20241114_add_price_to_matrix_view
authorAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Thu, 14 Nov 2024 08:43:56 +0000 (11:43 +0300)
committerAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Thu, 14 Nov 2024 08:43:56 +0000 (11:43 +0300)
erp24/views/matrix_erp/index.php

index 471ce9e4f9a202a9e00e0d516619007f9e65d254..9fd5a64df411be00e6f9708c38b6e8c29f20c63c 100644 (file)
@@ -144,6 +144,7 @@ $this->params['breadcrumbs'][] = $this->title;
                                 <th>мини-фото</th>
                                 <th>Название</th>
                                 <th>категория</th>
+                                <th>цена</th>
                                 <th>Дата начала актуальности</th>
                                 <th>Дата окончания актуальности</th>
                                 <th>Активность</th>
@@ -168,6 +169,12 @@ $this->params['breadcrumbs'][] = $this->title;
                                     if (!empty($item->matrixMedia)) {
                                         $matrixMediaRow = $item->matrixMedia;
                                     }
+                                    $matrixPriceValueRow = 0;
+                                    $matrixPriceRow = $item->price;
+                                    if (!empty($matrixPriceRow)){
+                                        $tt = 1;
+                                        $matrixPriceValueRow = $matrixPriceRow->price;
+                                    }
 
                                     $editUrl = Html::a("Редактировать", ['/matrix-erp/update', 'id' => $item->id], ['class' => 'btn btn-primary', 'target'=>'blank']);
 
@@ -183,6 +190,7 @@ $this->params['breadcrumbs'][] = $this->title;
                                         <td><?= $image ?></td>
                                         <td><?= $item->name ?></td>
                                         <td><?= $item->group_name ?></td>
+                                        <td><?= $matrixPriceValueRow ?></td>
                                         <td><?= $item-> date_from ?></td>
                                         <td><?= $item->date_to ?></td>
                                         <td><?= (($item->active) ? 'Активна': 'Не активна') ?></td>