]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-102 Приёмник для эксель файла (корректировка)
authormarina <m.zozirova@gmail.com>
Fri, 9 Aug 2024 05:12:40 +0000 (08:12 +0300)
committermarina <m.zozirova@gmail.com>
Fri, 9 Aug 2024 05:12:40 +0000 (08:12 +0300)
erp24/views/motivation/index.php

index 126b342b360f52bb735d8424710c73bff0ac0748..c43475efb82eceff19faf6ece701af755420ac7a 100644 (file)
@@ -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 " ";
                                 }