]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Правки по количеству - расчет с раскрытием товаров
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Fri, 30 May 2025 10:50:41 +0000 (13:50 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Fri, 30 May 2025 10:50:41 +0000 (13:50 +0300)
erp24/views/auto-plannogramma/7.php
erp24/views/auto-plannogramma/8.php

index c4774db244f84702c0e47a1ce71ad3bca9f5a7b4..6db977378057aef5973a68535f8e16d9599263c7 100644 (file)
 
 <?= GridView::widget([
     'dataProvider' => $dataProvider,
+    'showPageSummary' => true,
     'columns' => [
         ['attribute' => 'store_id', 'label' => 'Магазин', 'value' => function ($data) {
             return CityStore::findOne($data['store_id'])->name ?? null;
         }],
         ['attribute' => 'species', 'label' => 'Категория'],
-        ['attribute' => 'goal', 'label' => 'Сумма', 'format' => ['decimal', 2]],
+        ['attribute' => 'goal', 'label' => 'Сумма', 'format' => ['decimal', 2], 'pageSummary' => true],
 
     ],
 ]); ?>
index 885a80ed45d238d6173b7fe8de5d26c02c222c17..ad4a4c0cb09a1c21841edb85b3d15576f183c8e3 100644 (file)
@@ -102,13 +102,14 @@ $columns = [
     ['attribute' => 'category', 'label' => 'Категория'],
     ['attribute' => 'subcategory', 'label' => 'Подкатегория'],
     ['attribute' => 'species', 'label' => 'Тип'],
-    ['attribute' => 'goal', 'label' => 'Сумма', 'format' => ['decimal', 2]],
+    ['attribute' => 'goal', 'label' => 'Сумма', 'format' => ['decimal', 2], 'pageSummary' => true,],
 ];
 
 
 ?>
 <?= GridView::widget([
     'dataProvider' => $dataProvider,
+    'showPageSummary' => true,
     'columns' => $columns,
 ]); ?>
 <?php