[Mahasiswa] Penambahan Cetak KRS, KHS, dan Transkrip

This commit is contained in:
Ariyutta
2026-11-19 17:16:20 +07:00
parent d7a0aad663
commit bdce29fca1
29 changed files with 2265 additions and 39 deletions
+7 -1
View File
@@ -34,7 +34,7 @@ class StudyResults
->orderBy('p.thakad')->orderBy('p.semester')->orderBy('p.perkuliahan')->orderBy('m.kodemk')
->get([
'k.idperiode', 'p.thakad', 'p.semester', 'p.perkuliahan',
'm.kodemk', 'm.namamk', 'm.sks', 'k.nilaitotal', 'k.nilaihuruf', 'k.nilaimutu', 'j.flag_cetak',
'm.kodemk', 'm.namamk', 'm.sks', 'm.nilailulus', 'k.nilaitotal', 'k.nilaihuruf', 'k.nilaimutu', 'j.flag_cetak',
]);
$entry = $this->db()->table('t_mahasiswa as s')
@@ -52,6 +52,9 @@ class StudyResults
'angka' => $row->nilaitotal === null ? null : (float) $row->nilaitotal,
'huruf' => filled($row->nilaihuruf) ? trim($row->nilaihuruf) : null,
'bobot' => $row->nilaimutu === null ? null : (float) $row->nilaimutu,
// Sama dengan f_skslulus: lulus bila nilai mutu mencapai batas lulus dan nilainya terbit.
'lulus' => (bool) $row->flag_cetak && $row->nilaimutu !== null && $row->nilailulus !== null
&& (float) $row->nilaimutu >= (float) $row->nilailulus,
])->values();
$sks = $matkul->sum('sks');
@@ -64,6 +67,9 @@ class StudyResults
'key' => (int) $first->idperiode,
'tab' => $pendek || $ke === null ? 'Pendek '.$label : 'Semester '.$ke,
'label' => $label.($pendek ? ' (pendek)' : ''),
'ke' => $pendek ? null : $ke,
'pendek' => $pendek,
'tahun_akademik' => LegacyFormat::academicYear($first->thakad, $first->semester).($pendek ? ' (Pendek)' : ''),
'sks' => $sks,
'ips' => $sks > 0 ? round($mutu / $sks, 2) : 0.0,
'matkul' => $matkul,