From: fomichev Date: Fri, 20 Dec 2024 10:22:05 +0000 (+0300) Subject: Открытие номера локумента X-Git-Tag: 1.7~117^2~1 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=e72a55dfce7859a5c6c453c1a27da305137768f2;p=erp24_rep%2Fyii-erp24%2F.git Открытие номера локумента --- 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С',