[Исправление]: исправлена верхняя строка с планом #3
This commit is contained in:
@@ -104,11 +104,12 @@ class StatisticsService
|
|||||||
// 5. Собираем данные
|
// 5. Собираем данные
|
||||||
$groupedData = [];
|
$groupedData = [];
|
||||||
$totalsByType = [];
|
$totalsByType = [];
|
||||||
$grandRecipientPlan = 0;
|
|
||||||
$grandProgressPlan = 0;
|
|
||||||
|
|
||||||
$departmentsPlans = $this->planCalculator->calculate($allDeptIds, $startDate, $endDate);
|
$departmentsPlans = $this->planCalculator->calculate($allDeptIds, $startDate, $endDate);
|
||||||
|
|
||||||
|
$grandRecipientPlan = collect($departmentsPlans)->sum('cumulative_plan');
|
||||||
|
$grandProgressPlan = collect($departmentsPlans)->sum('actual_year_to_date');
|
||||||
|
|
||||||
foreach ($departments as $typeName => $deptList) {
|
foreach ($departments as $typeName => $deptList) {
|
||||||
$groupedData[$typeName] = [];
|
$groupedData[$typeName] = [];
|
||||||
$totalsByType[$typeName] = $this->initTypeTotals();
|
$totalsByType[$typeName] = $this->initTypeTotals();
|
||||||
|
|||||||
Reference in New Issue
Block a user