]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-140] проценты в записи числа важны как и умножение на 100 при переводе в них
authorAlexander Smirnov <fredeom@mail.ru>
Wed, 4 Sep 2024 15:27:21 +0000 (18:27 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Wed, 4 Sep 2024 15:27:21 +0000 (18:27 +0300)
erp24/views/motivation/index.php

index 189ea595ded0c269d4138562c0072f15039cc044..7b3ccd4813958d59dbbea24dcefda6e5a4cfcca9 100644 (file)
@@ -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 = '';