fix(otorisator): ubah permohonan id

This commit is contained in:
majid
2025-03-20 15:35:45 +07:00
parent bb052decae
commit 850074ee7e
2 changed files with 10 additions and 1 deletions

View File

@@ -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',
]);