fix(otorisator): ubah permohonan id
This commit is contained in:
@@ -834,6 +834,15 @@ class PenilaiController extends Controller
|
||||
}
|
||||
|
||||
|
||||
$cekLpj =$this->checkDataLpj($type, $statusLpj)
|
||||
if ($permohonan->status_bayar === 'sudah_bayar' && $cekLpj) {
|
||||
return response()->json([
|
||||
'success' => false,
|
||||
'message' => 'Harap mengisi LPJ terlebih dahulu',
|
||||
])
|
||||
}
|
||||
|
||||
|
||||
$permohonan->update([
|
||||
'status' => 'proses-laporan',
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user