Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions app/Helpers/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -844,8 +844,6 @@ public static function getDipa($id)
return Dipa::cache()->get('all')->where('id', $id)->first();
}



/**
* Mengambil ID Tata Naskah Terbaru.
*
Expand Down Expand Up @@ -988,6 +986,6 @@ public static function setOptionPengelola($role, $tanggal, $unitKerjaId = null)

public static function setOptionDipa()
{
return self::setOptions(Dipa::cache()->get('all')->whereBetween('tahun', [session('year'), session('year')+1]), 'id', 'tahun');
return self::setOptions(Dipa::cache()->get('all')->whereBetween('tahun', [session('year'), session('year') + 1]), 'id', 'tahun');
}
}
5 changes: 2 additions & 3 deletions app/Models/KerangkaAcuan.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,8 @@ protected static function booted(): void
foreach ($anggarans as $anggaran) {
$copyAnggaran = $anggaran->replicate();
$copyAnggaran->kerangka_acuan_id = $kak->id;
$copyAnggaran->save();
}

$copyAnggaran->save();
}
}
$spesifikasis = SpesifikasiKerangkaAcuan::where('kerangka_acuan_id', $request->input('fromResourceId'))->get();
foreach ($spesifikasis as $spesifikasi) {
Expand Down