]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-261] Переименованы заголовки
authorAlexander Smirnov <fredeom@mail.ru>
Thu, 19 Dec 2024 07:39:25 +0000 (10:39 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Thu, 19 Dec 2024 07:39:25 +0000 (10:39 +0300)
erp24/views/waybill-incoming/index.php
erp24/views/waybill-incoming/view.php

index c3b1fee06810d55b66712bfe6d0015913957b69c..cca65c6c68da381068b30dd8aceab889af154e17 100644 (file)
@@ -15,7 +15,7 @@ use yii_app\records\WaybillIncoming;
 
 <div class="waybillIncomingIndex m-5">
 
-    <h1>Waybill Income</h1>
+    <h1>Список накладных оприходования</h1>
 
     <?= GridView::widget([
         'dataProvider' => $dataProvider,
@@ -23,15 +23,35 @@ use yii_app\records\WaybillIncoming;
             ['class' => 'yii\grid\SerialColumn'],
             [
                 'attribute' => 'guid',
+                'label' => 'GUID документа для 1С',
                 'value' => function ($model) {
                     return \yii\helpers\Html::a($model->guid, ['view', 'id' => $model->id]);
                 },
                 'format' => 'raw',
             ],
-            'shift_transfer_id',
-            'status',
-            'created_admin_id',
-            'updated_admin_id',
+            [
+                'attribute' => 'shift_transfer_id',
+                'label' => 'Накладная передачи',
+                'format' => 'html',
+                'value' => function ($model) {
+                    return Html::a($model['shift_transfer_id'], ['/shift-transfer/view', 'id' => $model['shift_transfer_id']], ['class' => 'btn btn-link']);
+                }
+            ],
+            [
+                'attribute' => 'status',
+                'label' => 'Статус',
+                'value' => function ($model) {
+                    return \yii_app\records\WriteOffsErp::STATUSES[$model->status];
+                }
+            ],
+            [
+                'attribute' => 'created_admin_id',
+                'label' => 'Создано Кем'
+            ],
+            [
+                'attribute' => 'updated_admin_id',
+                'label' => 'Обновлено Кем'
+            ],
             [
                 'label' => 'Магазин',
                 'attribute' => 'store_id',
@@ -40,16 +60,46 @@ use yii_app\records\WaybillIncoming;
                         ->entity_id)->name;
                 }
             ],
-            'number',
-            'number_1c',
-            'date',
-            'comment',
-            'quantity',
-            'summ',
-            'summ_self_cost',
-            'created_at',
-            'updated_at',
-            'send_at',
+            [
+                'attribute' => 'number',
+                'label' => 'Название документа'
+            ],
+            [
+                'attribute' => 'number_1c',
+                'label' => 'Название документа в 1С'
+            ],
+            [
+                'attribute' => 'date',
+                'label' => 'Дата Документа'
+            ],
+            [
+                'attribute' => 'comment',
+                'label' => 'Комментарий'
+            ],
+            [
+                'attribute' => 'quantity',
+                'label' => 'Количество'
+            ],
+            [
+                'attribute' => 'summ',
+                'label' => 'Сумма розницы'
+            ],
+            [
+                'attribute' => 'summ_self_cost',
+                'label' => 'Сумма себестоимости'
+            ],
+            [
+                'attribute' => 'created_at',
+                'label' => 'Создано в'
+            ],
+            [
+                'attribute' => 'updated_at',
+                'label' => 'Обновлено в'
+            ],
+            [
+                'attribute' => 'send_at',
+                'label' => 'Отправлено в'
+            ],
             [
                 'class' => ActionColumn::class,
                 'template' => '{view}',
index 996d85047481617a4dcc23d845b5b72053333f73..75f18a75ab6348f2c9d2037152e57cb9e6740c29 100644 (file)
@@ -16,6 +16,7 @@ $this->params['breadcrumbs'][] = $this->title;
 ?>
 <div class="waybill-write-offs-view p-4">
 
+    <?= Html::a('Назад', ['/waybill-incoming'], ['class' => 'btn btn-secondary btn-sm'])?>
     <h1><?= Html::encode($this->title) ?></h1>
 
     <!-- Детали документа -->
@@ -23,16 +24,26 @@ $this->params['breadcrumbs'][] = $this->title;
         'model' => $model,
         'attributes' => [
             'id',
-            'guid',
+            [
+                'attribute' => 'guid',
+                'label' => 'GUID документа для 1С'
+            ],
             [
                 'attribute' => 'shift_transfer_id',
                 'format' => 'html',
+                'label' => 'Накладная передачи',
                 'value' => function ($model) {
                     return Html::a($model['shift_transfer_id'], ['/shift-transfer/view', 'id' => $model['shift_transfer_id']], ['class' => 'btn btn-link']);
                 }
             ],
-            'number',
-            'date',
+            [
+                'attribute' => 'number',
+                'label' => 'Название документа',
+            ],
+            [
+                'attribute' => 'date',
+                'label' => 'Дата документа',
+            ],
             [
                 'label' => 'Магазин',
                 'attribute' => 'store_id',
@@ -41,9 +52,21 @@ $this->params['breadcrumbs'][] = $this->title;
                         ->entity_id)->name;
                 }
             ],
-            'quantity',
-            'summ_self_cost',
-            'status',
+            [
+                'attribute' => 'quantity',
+                'label' => 'Количество',
+            ],
+            [
+                'attribute' => 'summ_self_cost',
+                'label' => 'Сумма себестоимости',
+            ],
+            [
+                'attribute' => 'status',
+                'label' => 'Статус',
+                'value' => function ($model) {
+                    return \yii_app\records\WriteOffsErp::STATUSES[$model->status];
+                }
+            ],
             [
                 'label' => 'Создан пользователем',
                 'attribute' => 'created_admin_id',
@@ -74,4 +97,4 @@ $this->params['breadcrumbs'][] = $this->title;
         ],
     ]) ?>
 
-</div>
\ No newline at end of file
+</div>