Perbaikan +12 Poin Grade
This commit is contained in:
@@ -89,8 +89,14 @@ class SimulasiJabatanController extends Controller
|
||||
$row['p2_total_excel'] = $row['p2_total_excel_g12'];
|
||||
if (! empty($row['grade12_eligible'])) {
|
||||
$parseN = fn ($v) => (float) str_replace(',', '.', str_replace('.', '', $v));
|
||||
$row['poin_grade_14_17'] = number_format((float) SimulasiJabatanExport::GRADE_1417_POIN, 2, ',', '.');
|
||||
$row['total_poin'] = number_format($parseN($row['total_poin']) + SimulasiJabatanExport::GRADE_1417_POIN, 2, ',', '.');
|
||||
// Total Poin dosen mentok di 68 (aturan yang sama dengan
|
||||
// rumus P2: min(68, ...)). Tambahan +12 hanya berlaku
|
||||
// sampai plafon itu, jadi dosen yang sudah 68 tidak
|
||||
// bertambah dan yang mendekati 68 hanya naik sebagian.
|
||||
$totalPoin = $parseN($row['total_poin']);
|
||||
$tambahanEfektif = max(0.0, min((float) SimulasiJabatanExport::TOTAL_POIN_MAX, $totalPoin + SimulasiJabatanExport::GRADE_1417_POIN) - $totalPoin);
|
||||
$row['poin_grade_14_17'] = number_format($tambahanEfektif, 2, ',', '.');
|
||||
$row['total_poin'] = number_format($totalPoin + $tambahanEfektif, 2, ',', '.');
|
||||
}
|
||||
}
|
||||
return array_merge($row, ['DT_RowIndex' => $start + $index + 1]);
|
||||
@@ -387,7 +393,9 @@ class SimulasiJabatanController extends Controller
|
||||
|
||||
// Tambahan "+12 poin grade" (opsional) — dihargai tarif dasar jabatan.
|
||||
if ($eligibleG12) {
|
||||
$poinNonAdhocSim = $poinP2NonAdhoc + SimulasiJabatanExport::GRADE_1417_POIN;
|
||||
// Plafon 68 tetap berlaku (net 68-12 di luar poin wajib), jadi
|
||||
// bulan yang poin P2-nya sudah mentok tidak ikut naik.
|
||||
$poinNonAdhocSim = min((float) (SimulasiJabatanExport::TOTAL_POIN_MAX - SimulasiJabatanExport::GRADE_1417_POIN), $poinP2NonAdhoc + SimulasiJabatanExport::GRADE_1417_POIN);
|
||||
$jttPoinSim = $hasJtt ? min(28.0, $poinNonAdhocSim) : 0.0;
|
||||
$jfPoinSim = max(0.0, $poinNonAdhocSim - $jttPoinSim);
|
||||
$jttPortion += ($jttPoinSim - $jttPoin) * $jtt377 / 6;
|
||||
|
||||
Reference in New Issue
Block a user