From e72a55dfce7859a5c6c453c1a27da305137768f2 Mon Sep 17 00:00:00 2001 From: fomichev Date: Fri, 20 Dec 2024 13:22:05 +0300 Subject: [PATCH] =?utf8?q?=D0=9E=D1=82=D0=BA=D1=80=D1=8B=D1=82=D0=B8=D0=B5?= =?utf8?q?=20=D0=BD=D0=BE=D0=BC=D0=B5=D1=80=D0=B0=20=D0=BB=D0=BE=D0=BA?= =?utf8?q?=D1=83=D0=BC=D0=B5=D0=BD=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/views/waybill-write-offs/view.php | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/erp24/views/waybill-write-offs/view.php b/erp24/views/waybill-write-offs/view.php index d9d2b147..953e86a0 100644 --- a/erp24/views/waybill-write-offs/view.php +++ b/erp24/views/waybill-write-offs/view.php @@ -59,24 +59,21 @@ $this->params['breadcrumbs'][] = $this->title; 'visible' => $model->status == \yii_app\records\WriteOffsErp::STATUS_ERROR_1С, ], [ - 'label' => 'Название документа в 1С', - 'attribute' => 'name_1c', + 'label' => 'Номер документа в 1С', + 'attribute' => 'number_1c', 'value' => function ($model) { - return - $model->status == \yii_app\records\WriteOffsErp::STATUS_CREATED_1С ? - $model->name_1c : ''; + return $model->number_1c ?? ''; }, - 'visible' => $model->status == \yii_app\records\WriteOffsErp::STATUS_CREATED_1С, ], [ - 'label' => 'Номер документа в 1С', - 'attribute' => 'number_1c', + 'label' => 'Название документа в 1С', + 'attribute' => 'name_1c', 'value' => function ($model) { return $model->status == \yii_app\records\WriteOffsErp::STATUS_CREATED_1С ? - $model->number_1c : ''; + $model->name_1c : ''; }, - 'visible' => $model->status == \yii_app\records\WriteOffsErp::STATUS_CREATED_1С && isset($model->number_1c), + 'visible' => $model->status == \yii_app\records\WriteOffsErp::STATUS_CREATED_1С, ], [ 'label' => 'Отправлено в 1С', -- 2.39.5