feat: add calculation rules, management features, and services for period 401
This commit is contained in:
@@ -274,6 +274,23 @@ class RasioP2PoinExport
|
||||
$rate = $br / $pp;
|
||||
$baris = 'Result : '.number_format($pp, 2, ',', '.').' Poin × Rp '.number_format($rate, 2, ',', '.').' = Rp '.number_format($br, 2, ',', '.');
|
||||
|
||||
$isAturanBaru = ! empty($this->sec['p2_formula']['is_aturan_baru']);
|
||||
if ($isAturanBaru) {
|
||||
$adhocRate = (float) ($this->sec['adhoc']['nilai_per_poin'] ?? 110000);
|
||||
$pembagi = (int) ($this->sec['p2_formula']['pembagi'] ?? 6);
|
||||
$jfRate = $pembagi > 0 ? ((float) ($this->sec['p2_formula']['fungsional']['harga'] ?? 0)) / $pembagi : 0;
|
||||
|
||||
if ($adhocRate > 0 && abs($rate - $adhocRate) < 1.0) {
|
||||
$baris .= "\n(Tarif tetap Tim Adhoc/Kepanitiaan Adhoc dosen: Rp 660.000 ÷ 6 = Rp ".number_format($adhocRate, 2, ',', '.').' / Poin)';
|
||||
} elseif ($jfRate > 0 && abs($rate - $jfRate) < 1.0) {
|
||||
$baris .= "\n(Tarif Jabatan Fungsional: Total P2 JF ÷ Poin JF = Rp ".number_format($jfRate, 2, ',', '.').' / Poin)';
|
||||
} else {
|
||||
$baris .= "\n(Tarif proporsional JTT: Rp ".number_format($rate, 2, ',', '.').' / Poin)';
|
||||
}
|
||||
|
||||
return $baris;
|
||||
}
|
||||
|
||||
$nilaiPerPoin = $this->nilaiPerPoin();
|
||||
if ($nilaiPerPoin > 0 && abs($rate - $nilaiPerPoin) < 0.5) {
|
||||
$totalPoinFull = (float) ($this->sec['total_poin_p2'] ?? 0);
|
||||
|
||||
Reference in New Issue
Block a user