From b8009fda52e93297ef761907fb9317ccd5f84778 Mon Sep 17 00:00:00 2001 From: Vladimir Fomichev Date: Thu, 4 Sep 2025 13:26:15 +0300 Subject: [PATCH] =?utf8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD?= =?utf8?q?=D0=B8=D0=B5=20=D1=81=D1=81=D1=8B=D0=BB=D0=BE=D0=BA=20=D0=BD?= =?utf8?q?=D0=B0=20=D0=BC=D0=B0=D1=82=D1=80=D0=B8=D1=86=D1=83=20=D0=B8?= =?utf8?q?=D0=B7=20=D0=BE=D1=82=D1=87=D0=B5=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/views/marketplace/report.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/erp24/views/marketplace/report.php b/erp24/views/marketplace/report.php index 8220f042..bc211e94 100644 --- a/erp24/views/marketplace/report.php +++ b/erp24/views/marketplace/report.php @@ -78,7 +78,20 @@ $this->params['breadcrumbs'][] = $this->title; $columns = [ ['class' => 'yii\grid\SerialColumn'], 'name', - 'articule', + [ 'format' => 'raw', + 'attribute' => 'articule', + 'label' => 'Актикул', + 'value' => function ($model) { + + $matrixProductId = \yii_app\records\MatrixErp::find() + ->select('id') + ->where(['guid' => $model['id']])->scalar(); + /*$link = '' + . $model['articule'] . '';*/ + $link = Html::a($model['articule'], ['/matrix-erp/update', 'id' => $matrixProductId], ['target' => '_blank', 'encode' => false]); + return $link; + } + ], 'id', [ 'attribute' => 'is_valid', -- 2.39.5