feat: add calculation rules, management features, and services for period 401
This commit is contained in:
@@ -325,7 +325,8 @@
|
||||
// Baris hasil biasa; untuk P2 (Bruto) dengan Adhoc,
|
||||
// baris bruto mentah bukan hasil akhir (disusul pengurangan Adhoc).
|
||||
$isResult = $isLast;
|
||||
if ($hasAdhocInMonth) {
|
||||
$isAturanBaruDetail = !empty($adhoc['is_aturan_baru']);
|
||||
if ($hasAdhocInMonth && !$isAturanBaruDetail) {
|
||||
if ($fKey === 'bruto' && $isLast && $hasAdhocDetail) {
|
||||
$isResult = false;
|
||||
} elseif ($fKey === 'ratio') {
|
||||
@@ -340,7 +341,7 @@
|
||||
<li @if ($isResult) class="formula-result" @endif>{{ $displayStep }}</li>
|
||||
@endforeach
|
||||
|
||||
@if ($fKey === 'bruto' && $hasAdhocDetail)
|
||||
@if ($fKey === 'bruto' && $hasAdhocDetail && empty($adhoc['is_aturan_baru']))
|
||||
<li>P2 (Bruto) − P2 Adhoc</li>
|
||||
<li>Rp. {{ number_format($sec['p2_total_bruto'], 2, ',', '.') }} − Rp. {{ number_format($adhoc['potongan'], 2, ',', '.') }}</li>
|
||||
<li class="formula-result">Rp. {{ number_format($sec['bruto'], 2, ',', '.') }}</li>
|
||||
@@ -354,23 +355,6 @@
|
||||
{{-- Kanan: Detail Jabatan --}}
|
||||
<div class="col-12 col-md-7">
|
||||
@if ($sec['is_dosen'])
|
||||
{{-- Jabatan Fungsional --}}
|
||||
@if (!empty($p2f['fungsional']))
|
||||
<div class="formula-section">
|
||||
<div class="formula-title">Jabatan Fungsional</div>
|
||||
<div class="formula-info">
|
||||
Jabatan: <strong>{{ $p2f['fungsional']['jabatan'] ?? '-' }}</strong><br>
|
||||
Grade: <strong>{{ $p2f['fungsional']['grade'] ?? '-' }}</strong><br>
|
||||
Harga Jabatan: <strong>{{ number_format($p2f['fungsional']['harga'] ?? 0, 2, ',', '.') }}</strong>
|
||||
</div>
|
||||
<ul class="formula-steps">
|
||||
@foreach ($p2f['fungsional']['steps'] as $step)
|
||||
<li @if ($loop->last) class="formula-result" @endif>{{ $step }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{{-- Jabatan Tugas Tambahan --}}
|
||||
@if (!empty($p2f['tambahan']))
|
||||
<div class="formula-section">
|
||||
@@ -388,24 +372,58 @@
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{{-- Adhoc --}}
|
||||
@if ($hasAdhocDetail)
|
||||
@php $selisihPerPoin = $adhoc['nilai_per_poin_normal'] - $adhoc['nilai_per_poin_adhoc']; @endphp
|
||||
{{-- Jabatan Fungsional --}}
|
||||
@if (!empty($p2f['fungsional']))
|
||||
<div class="formula-section">
|
||||
<div class="formula-title">Adhoc</div>
|
||||
<div class="formula-title">Jabatan Fungsional</div>
|
||||
<div class="formula-info">
|
||||
Poin P2 Adhoc: <strong>{{ number_format($adhoc['poin'], 2, ',', '.') }}</strong><br>
|
||||
Nilai per Poin (Normal): <strong>Rp. {{ number_format($adhoc['nilai_per_poin_normal'], 2, ',', '.') }}</strong><br>
|
||||
Nilai per Poin (Adhoc): <strong>Rp. {{ number_format($adhoc['nilai_per_poin_adhoc'], 2, ',', '.') }}</strong>
|
||||
Jabatan: <strong>{{ $p2f['fungsional']['jabatan'] ?? '-' }}</strong><br>
|
||||
Grade: <strong>{{ $p2f['fungsional']['grade'] ?? '-' }}</strong><br>
|
||||
Harga Jabatan: <strong>{{ number_format($p2f['fungsional']['harga'] ?? 0, 2, ',', '.') }}</strong>
|
||||
</div>
|
||||
<ul class="formula-steps">
|
||||
<li>Poin P2 Adhoc × (Nilai per Poin Normal − Nilai per Poin Adhoc)</li>
|
||||
<li>{{ number_format($adhoc['poin'], 2, ',', '.') }} × (Rp. {{ number_format($adhoc['nilai_per_poin_normal'], 2, ',', '.') }} − Rp. {{ number_format($adhoc['nilai_per_poin_adhoc'], 2, ',', '.') }})</li>
|
||||
<li>{{ number_format($adhoc['poin'], 2, ',', '.') }} × Rp. {{ number_format($selisihPerPoin, 2, ',', '.') }}</li>
|
||||
<li class="formula-result">Rp. {{ number_format($adhoc['potongan'], 2, ',', '.') }}</li>
|
||||
@foreach ($p2f['fungsional']['steps'] as $step)
|
||||
<li @if ($loop->last) class="formula-result" @endif>{{ $step }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{{-- Adhoc --}}
|
||||
@if ($hasAdhocDetail)
|
||||
@if (!empty($adhoc['is_aturan_baru']))
|
||||
<div class="formula-section">
|
||||
<div class="formula-title">Adhoc</div>
|
||||
<div class="formula-info">
|
||||
Poin P2 Adhoc Total: <strong>{{ number_format($adhoc['poin_total'], 2, ',', '.') }}</strong><br>
|
||||
Poin P2 Adhoc Masuk JTT: <strong>{{ number_format($adhoc['poin_jtt'], 2, ',', '.') }}</strong><br>
|
||||
Sisa Poin P2 Adhoc: <strong>{{ number_format($adhoc['poin_sisa'], 2, ',', '.') }}</strong><br>
|
||||
Nilai per Poin (Adhoc): <strong>Rp. {{ number_format($adhoc['nilai_per_poin'], 2, ',', '.') }}</strong>
|
||||
</div>
|
||||
<ul class="formula-steps">
|
||||
<li>Sisa Poin P2 Adhoc × Nilai per Poin Adhoc</li>
|
||||
<li>{{ number_format($adhoc['poin_sisa'], 2, ',', '.') }} × Rp. {{ number_format($adhoc['nilai_per_poin'], 2, ',', '.') }}</li>
|
||||
<li class="formula-result">Rp. {{ number_format($adhoc['p2_adhoc'], 2, ',', '.') }}</li>
|
||||
</ul>
|
||||
</div>
|
||||
@else
|
||||
@php $selisihPerPoin = $adhoc['nilai_per_poin_normal'] - $adhoc['nilai_per_poin_adhoc']; @endphp
|
||||
<div class="formula-section">
|
||||
<div class="formula-title">Adhoc</div>
|
||||
<div class="formula-info">
|
||||
Poin P2 Adhoc: <strong>{{ number_format($adhoc['poin'], 2, ',', '.') }}</strong><br>
|
||||
Nilai per Poin (Normal): <strong>Rp. {{ number_format($adhoc['nilai_per_poin_normal'], 2, ',', '.') }}</strong><br>
|
||||
Nilai per Poin (Adhoc): <strong>Rp. {{ number_format($adhoc['nilai_per_poin_adhoc'], 2, ',', '.') }}</strong>
|
||||
</div>
|
||||
<ul class="formula-steps">
|
||||
<li>Poin P2 Adhoc × (Nilai per Poin Normal − Nilai per Poin Adhoc)</li>
|
||||
<li>{{ number_format($adhoc['poin'], 2, ',', '.') }} × (Rp. {{ number_format($adhoc['nilai_per_poin_normal'], 2, ',', '.') }} − Rp. {{ number_format($adhoc['nilai_per_poin_adhoc'], 2, ',', '.') }})</li>
|
||||
<li>{{ number_format($adhoc['poin'], 2, ',', '.') }} × Rp. {{ number_format($selisihPerPoin, 2, ',', '.') }}</li>
|
||||
<li class="formula-result">Rp. {{ number_format($adhoc['potongan'], 2, ',', '.') }}</li>
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
@else
|
||||
{{-- Tendik: single jabatan --}}
|
||||
<div class="formula-section">
|
||||
|
||||
Reference in New Issue
Block a user