update
This commit is contained in:
@@ -698,6 +698,33 @@ class DokterController extends Controller
|
||||
'keterangan' => 'Kirim ke SPV',
|
||||
]);
|
||||
return response()->json(['icon' => 'success', 'warna' => '#5ba035', 'status' => 'Sukses', 'message' => 'Permohonan Verifikasi Terkirim']);
|
||||
case 'Permohonan Verifikasi Preliminary':
|
||||
$updateData = [
|
||||
'keterangan' => $keterangan,
|
||||
'dlp' => $dlp,
|
||||
'analis' => $analis,
|
||||
'nmanalis' => $cekanalis->nama ?? null,
|
||||
'dokter_id' => $iddokter,
|
||||
'nmdokter' => $cekdokter->nama ?? null,
|
||||
'ppdssenior' => $ppds3,
|
||||
'nmppdssenior' => $cekppds3->nama ?? null,
|
||||
'tandatangan' => '',
|
||||
'baca' => $today,
|
||||
'nmexcutor' => Session('nama'),
|
||||
'excutor' => Session('id'),
|
||||
'nmpembaca' => Session('nama'),
|
||||
'status' => 'Otor Maldi (Un Verified)',
|
||||
];
|
||||
$periksa->update($updateData);
|
||||
$surat = self::genSurat($periksa->id, 'dengan kop');
|
||||
Riwayat::create([
|
||||
'nofoto' => $nofoto,
|
||||
'jawaban' => $surat,
|
||||
'inputor' => Session('nama'),
|
||||
'verifikasi' => 'Accepted',
|
||||
'keterangan' => 'Kirim Preliminary ke SPV',
|
||||
]);
|
||||
return response()->json(['icon' => 'success', 'warna' => '#5ba035', 'status' => 'Sukses', 'message' => 'Permohonan Verifikasi Preliminary Terkirim']);
|
||||
case 'tolakadendum':
|
||||
Riwayat::where('nofoto', $nofoto)->whereNull('verifikasi')->update([
|
||||
'verifikasi' => 'Declined',
|
||||
|
||||
Reference in New Issue
Block a user