From: Alexander Smirnov Date: Wed, 4 Sep 2024 15:27:21 +0000 (+0300) Subject: [ERP-140] проценты в записи числа важны как и умножение на 100 при переводе в них X-Git-Tag: 1.4~3^2~2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=f245bacd310b025a1339caa71463d6ac9aaba761;p=erp24_rep%2Fyii-erp24%2F.git [ERP-140] проценты в записи числа важны как и умножение на 100 при переводе в них --- diff --git a/erp24/views/motivation/index.php b/erp24/views/motivation/index.php index 189ea595..7b3ccd48 100644 --- a/erp24/views/motivation/index.php +++ b/erp24/views/motivation/index.php @@ -227,11 +227,9 @@ $this->registerJsFile('/js/motivation/index.js', ['position' => \yii\web\View::P 'attribute' => 'deviation', 'header' => 'Отклонение, %', 'value' => function ($model) { - return $model["deviation"] !== null ? FormatHelper::asDecimalMotivation($model["deviation"]) : " "; + return $model["deviation"] !== null ? FormatHelper::asDecimalMotivation($model["deviation"] * 100) . "%" : " "; }, - ] - ], 'rowOptions' => function ($model, $key, $index, $grid) { $style = '';