<div class="waybillIncomingIndex m-5">
- <h1>Waybill Income</h1>
+ <h1>Список накладных оприходования</h1>
<?= GridView::widget([
'dataProvider' => $dataProvider,
['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',
->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}',
?>
<div class="waybill-write-offs-view p-4">
+ <?= Html::a('Назад', ['/waybill-incoming'], ['class' => 'btn btn-secondary btn-sm'])?>
<h1><?= Html::encode($this->title) ?></h1>
<!-- Детали документа -->
'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',
->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',
],
]) ?>
-</div>
\ No newline at end of file
+</div>