fix pengajuan dpadpu error
All checks were successful
Run Action to Production / run pull to sync on target message (push) Has been skipped

This commit is contained in:
efbe 2024-04-18 08:57:28 +07:00
parent 3b60021799
commit 0be6772830

View File

@ -49,7 +49,7 @@ public function tambah(){
public function terima(Request $request){ public function terima(Request $request){
$id = $request->id; $id = $request->id;
$countcaseid = PengajuanDpuDpa::where('ttd_operator','!=','-')->count(); $countcaseid = PengajuanDpuDpa::where('ttd_operator','!=','-')->count();
$caseid = "LS".date_format(date_create(),"ym").$countcaseid+3; $caseid = "LS".date_format(date_create(),"ym").$countcaseid+1;
$cekData = PengajuanDpuDpa::where('caseid',$caseid)->first(); $cekData = PengajuanDpuDpa::where('caseid',$caseid)->first();
$data = PengajuanDpuDpa::where('id',$id)->first(); $data = PengajuanDpuDpa::where('id',$id)->first();