[Operator] Kelengkapan Halaman Dosen

This commit is contained in:
Ariyutta
2026-11-14 07:51:17 +07:00
parent 59e941d2ce
commit 58d5d4312b
17 changed files with 234 additions and 42 deletions
@@ -645,9 +645,10 @@ final class MahasiswaReports implements ReportSource
[$columns, $rows] = $this->pivot($found, $this->academicStatuses(), 'prodi', 'Program Studi');
// Baris terakhir pivot = "Jumlah" (baris penjumlahan)
return new ReportResult($columns, array_slice($rows, 0, $limit), count($rows), [
$this->prodiSummary($prodi, $c), 'Periode: '.LegacyFormat::periodLabel($period->thakad, $period->semester, $period->perkuliahan),
]);
], totals: $rows === [] ? [] : [count($rows) - 1]);
}
private function cohortStatusRecap(array $p, ReportContext $c, int $limit): ReportResult
@@ -673,7 +674,7 @@ final class MahasiswaReports implements ReportSource
return new ReportResult($columns, array_slice($rows, 0, $limit), count($rows), [
$this->prodiSummary($prodi, $c), 'Angkatan: '.$from.' sampai '.$to,
], 'Status mahasiswa saat ini per angkatan (bukan status pada satu periode tertentu).');
], 'Status mahasiswa saat ini per angkatan (bukan status pada satu periode tertentu).', $rows === [] ? [] : [count($rows) - 1]);
}
// Definisi --------------------------------------------------------------------------------------------------