// Подсчитываем стоимость услуг по сборке и по доставке. Позже метод будет перенесён в шедулер
MotivationService::calculateServiceAssemblyAndDeliveryCost($model->store_id, $model->year, $model->month);
+ // Подсчитываем прогноз за месяц
+ MotivationService::calculateMonthForecast($model->store_id, $model->year, $model->month);
+
$showTable = false;
$motivationData = [];
$daysInMonth = null;
}
}
- // Подсчитываем прогноз за месяц
- MotivationService::calculateMonthForecast($model->store_id, $model->year, $model->month);
-
return $this->controller->render(
'index',
compact('model', 'stores', 'years', 'months', 'motivationDataTableSort', 'showTable',