From: marina Date: Fri, 9 Aug 2024 05:12:40 +0000 (+0300) Subject: ERP-102 Приёмник для эксель файла (корректировка) X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=53e1a779c3223ea7975fed579948613145298352;p=erp24_rep%2Fyii-erp24%2F.git ERP-102 Приёмник для эксель файла (корректировка) --- diff --git a/erp24/views/motivation/index.php b/erp24/views/motivation/index.php index 126b342b..c43475ef 100644 --- a/erp24/views/motivation/index.php +++ b/erp24/views/motivation/index.php @@ -143,10 +143,10 @@ $this->registerJsFile('/js/motivation/index.js', ['position' => \yii\web\View::P 'header' => 'План', ], [ - 'attribute' => 'correction', + 'attribute' => 'adjustment', 'value' => function ($model) { - if ($model["correction"] !== null && $model["correction"] !== '') { - return Yii::$app->formatter->asDecimal($model["correction"], 2); + if (isset($model["adjustment"])) { + return Yii::$app->formatter->asDecimal($model["adjustment"], 2); } else { return " "; }