From 737df86d6581e0be7f9743cea045232920d6c49d Mon Sep 17 00:00:00 2001 From: Vladimir Fomichev Date: Tue, 23 Dec 2025 17:38:13 +0300 Subject: [PATCH] =?utf8?q?=D0=92=D1=8B=D0=B2=D0=BE=D0=B4=20=D0=B2=D0=BE=20?= =?utf8?q?view?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/views/marketplace-orders/view.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/erp24/views/marketplace-orders/view.php b/erp24/views/marketplace-orders/view.php index 061bd02b..ab5f8f5c 100644 --- a/erp24/views/marketplace-orders/view.php +++ b/erp24/views/marketplace-orders/view.php @@ -2,6 +2,7 @@ use yii\helpers\Html; use yii\widgets\DetailView; +use yii_app\records\CreateChecks; use yii_app\records\MarketplaceOrderItems; use yii_app\records\MarketplaceOrders; use yii_app\records\WriteOffsErp; @@ -107,14 +108,17 @@ $this->params['breadcrumbs'][] = $this->title; } $check = $model->check; - if ($check->status == 0) { + + if ($check->status == CreateChecks::STATUS_CHECK_CREATED_ERP) { return 'Создан в ERP'; } - if ($check->status == 1) { - return $check->name - ? 'Создан в 1С' - : 'Отправлен в 1С'; + if ($check->status == CreateChecks::STATUS_CHECK_CREATED_1C) { + return 'Создан в 1С'; + } + + if ($check->status == CreateChecks::STATUS_CHECK_ERROR_1C) { + return 'Ошибка создания в 1С'; } return '-'; -- 2.39.5