From b82359e82094a10d9b990f35301f65e67287002a Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Fri, 9 Aug 2024 16:03:42 +0300 Subject: [PATCH] =?utf8?q?[ERP-137]=20=D0=9F=D0=B5=D1=80=D0=B5=D0=B4=D0=B2?= =?utf8?q?=D0=B8=D0=BD=D1=83=D0=BB=20=D0=BC=D0=B5=D1=81=D1=82=D0=BE=20?= =?utf8?q?=D0=B2=D1=8B=D0=B7=D0=BE=D0=B2=D0=B0=20=D0=BC=D0=B5=D1=82=D0=BE?= =?utf8?q?=D0=B4=D0=B0=20=D1=80=D0=B0=D1=81=D1=87=D1=91=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/actions/motivation/IndexAction.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/erp24/actions/motivation/IndexAction.php b/erp24/actions/motivation/IndexAction.php index 86bb32e7..30c8a223 100644 --- a/erp24/actions/motivation/IndexAction.php +++ b/erp24/actions/motivation/IndexAction.php @@ -90,6 +90,9 @@ class IndexAction extends Action // Подсчитываем стоимость услуг по сборке и по доставке. Позже метод будет перенесён в шедулер MotivationService::calculateServiceAssemblyAndDeliveryCost($model->store_id, $model->year, $model->month); + // Подсчитываем прогноз за месяц + MotivationService::calculateMonthForecast($model->store_id, $model->year, $model->month); + $showTable = false; $motivationData = []; $daysInMonth = null; @@ -166,9 +169,6 @@ class IndexAction extends Action } } - // Подсчитываем прогноз за месяц - MotivationService::calculateMonthForecast($model->store_id, $model->year, $model->month); - return $this->controller->render( 'index', compact('model', 'stores', 'years', 'months', 'motivationDataTableSort', 'showTable', -- 2.39.5