From 0be67728306712625e2bcddecc90962e94f7e028 Mon Sep 17 00:00:00 2001
From: efbe <fikyb13@gmail.com>
Date: Thu, 18 Apr 2024 08:57:28 +0700
Subject: [PATCH] fix pengajuan dpadpu error

---
 app/Http/Controllers/LayananPengajuanDpuDpaController.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/Http/Controllers/LayananPengajuanDpuDpaController.php b/app/Http/Controllers/LayananPengajuanDpuDpaController.php
index c92bca6..f7029ed 100644
--- a/app/Http/Controllers/LayananPengajuanDpuDpaController.php
+++ b/app/Http/Controllers/LayananPengajuanDpuDpaController.php
@@ -49,7 +49,7 @@ public function tambah(){
 public function terima(Request $request){
     $id = $request->id;
     $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();
     $data = PengajuanDpuDpa::where('id',$id)->first();