From: Alexander Smirnov Date: Mon, 19 Aug 2024 07:33:55 +0000 (+0300) Subject: [ERP-140] Отображает корректно корректировку X-Git-Tag: 1.4~5^2~22 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=889a79700046663e346d372fd2d72c349b48868b;p=erp24_rep%2Fyii-erp24%2F.git [ERP-140] Отображает корректно корректировку --- diff --git a/erp24/services/MotivationService.php b/erp24/services/MotivationService.php index de3166d5..358600ef 100644 --- a/erp24/services/MotivationService.php +++ b/erp24/services/MotivationService.php @@ -134,7 +134,7 @@ class MotivationService 'code' => $costsItem->code, 'name' => $costsItem->name, 'plan' => null, - 'correction' => null, + 'adjustment' => null, 'week1' => null, 'week2' => null, 'week3' => null, @@ -170,7 +170,7 @@ class MotivationService if (!isset($result[$key])) { $result[$key] = array_merge($item, [ 'plan' => null, - 'correction' => null, + 'adjustment' => null, 'week1' => null, 'week2' => null, 'week3' => null, diff --git a/erp24/views/motivation/index.php b/erp24/views/motivation/index.php index 38386efc..b8694247 100644 --- a/erp24/views/motivation/index.php +++ b/erp24/views/motivation/index.php @@ -133,10 +133,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 ($model["adjustment"] !== null && $model["adjustment"] !== '') { + return Yii::$app->formatter->asDecimal($model["adjustment"], 2); } else { return " "; }