]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Открытие номера локумента
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Fri, 20 Dec 2024 10:22:05 +0000 (13:22 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Fri, 20 Dec 2024 10:22:05 +0000 (13:22 +0300)
erp24/views/waybill-write-offs/view.php

index d9d2b1476de28c1e9f972f2d21a57ecea05fba69..953e86a012c278ca24fcdbc03e36ab8ed14cb757 100644 (file)
@@ -59,24 +59,21 @@ $this->params['breadcrumbs'][] = $this->title;
                 'visible' => $model->status == \yii_app\records\WriteOffsErp::STATUS_ERROR_1С,
             ],
             [
-                'label' => 'Ð\9dазвание документа в 1С',
-                'attribute' => 'name_1c',
+                'label' => 'Ð\9dомеÑ\80 документа в 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' => 'Ð\9dомеÑ\80 документа в 1С',
-                'attribute' => 'number_1c',
+                'label' => 'Ð\9dазвание документа в 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С',