From d18fddd567c1d35967765afc7929cda2b2462650 Mon Sep 17 00:00:00 2001 From: fomichev Date: Fri, 21 Mar 2025 09:28:42 +0300 Subject: [PATCH] =?utf8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5?= =?utf8?q?=D0=BD=D0=B8=D0=B5=20=D1=81=D1=82=D0=B0=D1=82=D1=83=D1=81=D0=BE?= =?utf8?q?=D0=B2=201=D1=81=20=D0=B2=20=D0=BF=D1=80=D0=B5=D0=B4=D1=81=D1=82?= =?utf8?q?=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/records/MarketplaceOrders.php | 4 ---- erp24/views/marketplace-orders/index.php | 3 ++- erp24/views/marketplace-orders/view.php | 3 ++- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/erp24/records/MarketplaceOrders.php b/erp24/records/MarketplaceOrders.php index 3ff02841..37edb96c 100644 --- a/erp24/records/MarketplaceOrders.php +++ b/erp24/records/MarketplaceOrders.php @@ -33,10 +33,6 @@ use Yii; */ class MarketplaceOrders extends \yii\db\ActiveRecord { - const STATUSES_1C = [ - 1 => 'Создан в ЕРП' - ]; - /** * {@inheritdoc} */ diff --git a/erp24/views/marketplace-orders/index.php b/erp24/views/marketplace-orders/index.php index 3f27e60e..6c98c79b 100644 --- a/erp24/views/marketplace-orders/index.php +++ b/erp24/views/marketplace-orders/index.php @@ -7,6 +7,7 @@ use yii\helpers\Url; use yii\grid\ActionColumn; use yii\grid\GridView; use yii_app\records\MarketplaceStore; +use yii_app\records\WriteOffsErp; /** @var yii\web\View $this */ /** @var yii_app\records\MarketplaceOrdersSearch $searchModel */ @@ -111,7 +112,7 @@ YiiAsset::register($this); [ 'attribute' => 'status_1c', 'value' => function ($model) { - return MarketplaceOrders::STATUSES_1C[$model->status_1c]; + return WriteOffsErp::STATUSES[$model->status_1c]; } ], [ diff --git a/erp24/views/marketplace-orders/view.php b/erp24/views/marketplace-orders/view.php index 4c83853a..56219afa 100644 --- a/erp24/views/marketplace-orders/view.php +++ b/erp24/views/marketplace-orders/view.php @@ -3,6 +3,7 @@ use yii\helpers\Html; use yii\widgets\DetailView; use yii_app\records\MarketplaceOrders; +use yii_app\records\WriteOffsErp; /** @var yii\web\View $this */ /** @var yii_app\records\MarketplaceOrders $model */ @@ -57,7 +58,7 @@ $this->params['breadcrumbs'][] = $this->title; [ 'attribute' => 'status_1c', 'value' => function ($model) { - return MarketplaceOrders::STATUSES_1C[$model->status_1c]; + return WriteOffsErp::STATUSES[$model->status_1c]; } ], ], -- 2.39.5