added split autoserahan and modal biasa

This commit is contained in:
Hafifie PKB
2025-03-25 00:54:18 +08:00
parent ae3b9cf7bc
commit 988b04f817
4 changed files with 124 additions and 10 deletions
@@ -13,6 +13,7 @@ use App\Events\NotifikasiKelulusan;
use App\Events\NotifikasiUbahHapus;
use App\Events\NotifikasiAGH;
use App\Events\NotifikasiPetiBesi;
use App\Events\AutoSerahan;
use App\User;
use App\Cawangan;
@@ -4375,6 +4376,8 @@ class KhazanahController extends Controller
// Step 3: Check if both API v3 and API v2 were successful
if ($call_approval_v2['status'] === 'success' && $call_approval_v3['status'] === 'success' && $call_set_approval_v3['status'] === 'success') {
event(new AutoSerahan("Operasi",$call_approval_v3['id'],$request->arraysend['kodcaw'],$request->arraysend['teller']));
return response()->json([
'status' => 'success',
'message' => 'Approval process completed successfully',