From: marina Date: Tue, 3 Dec 2024 14:20:07 +0000 (+0300) Subject: ERP-243 Действия по замене (II этап) X-Git-Tag: 1.7~194^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=464cd7f0890693fa76d75ffd501e4919edef2b33;p=erp24_rep%2Fyii-erp24%2F.git ERP-243 Действия по замене (II этап) --- diff --git a/erp24/views/replacement-invoice/index.php b/erp24/views/replacement-invoice/index.php index b5d0ee99..d5013720 100644 --- a/erp24/views/replacement-invoice/index.php +++ b/erp24/views/replacement-invoice/index.php @@ -26,6 +26,7 @@ $this->params['breadcrumbs'][] = $this->title; 'format' => 'raw', ], [ + 'label' => 'Магазин', 'attribute' => 'store_id', 'value' => function ($model) { return CityStore::findOne(\yii_app\records\ExportImportTable::findOne(['export_val' => $model->store_guid])->entity_id)->name; @@ -34,7 +35,7 @@ $this->params['breadcrumbs'][] = $this->title; 'number', 'date', 'created_at', - [ + [ 'attribute' => 'created_admin_id', 'value' => function ($model) { return $model->createdAdmin->name_full; diff --git a/erp24/views/store-balance/index.php b/erp24/views/store-balance/index.php index c8fd35ff..523b8153 100644 --- a/erp24/views/store-balance/index.php +++ b/erp24/views/store-balance/index.php @@ -7,7 +7,7 @@ use yii_app\records\CityStore; /* @var $this yii\web\View */ /* @var $dataProvider yii\data\ActiveDataProvider */ -$this->title = 'Store Balances'; +$this->title = 'Баланс магазина'; $this->params['breadcrumbs'][] = $this->title; ?>
@@ -20,9 +20,10 @@ $this->params['breadcrumbs'][] = $this->title; 'id', [ + 'label' => 'Магазин', 'attribute' => 'store_id', 'value' => function ($model) { - return CityStore::findOne(\yii_app\records\ExportImportTable::findOne(['export_val' => $model->store_id])->entity_id)->name; + return CityStore::findOne(\yii_app\records\ExportImportTable::findOne(['export_val' => $model->store_id])->entity_id)->name; } ], [ @@ -37,16 +38,15 @@ $this->params['breadcrumbs'][] = $this->title; [ 'attribute' => 'status_id', 'value' => function ($model) { - return $model->status_id == \yii_app\records\StoreBalance::STATUS_NEW ? 'Новая' : $model->status_id; + return $model->status_id == \yii_app\records\StoreBalance::STATUS_NEW ? 'Новая' : $model->status_id; } ], [ 'attribute' => 'type_id', 'value' => function ($model) { - return $model->type_id == \yii_app\records\StoreBalance::REPLACEMENT_ACTIONS ? 'Действия по замене' : $model->type_id; + return $model->type_id == \yii_app\records\StoreBalance::REPLACEMENT_ACTIONS ? 'Действия по замене' : $model->type_id; } ], - 'comment_controler', [ 'class' => 'yii\grid\ActionColumn', 'template' => '{view}', // только кнопка просмотра diff --git a/erp24/views/store-balance/view.php b/erp24/views/store-balance/view.php index 8c2e85ac..944ff06a 100644 --- a/erp24/views/store-balance/view.php +++ b/erp24/views/store-balance/view.php @@ -23,6 +23,7 @@ $this->params['breadcrumbs'][] = $this->title; 'model' => $model, 'attributes' => [ [ + 'label' => 'Магазин', 'attribute' => 'store_id', 'value' => function ($model) { return CityStore::findOne(\yii_app\records\ExportImportTable::findOne(['export_val' => $model->store_id])->entity_id)->name;