Develop realisasi belanja
This commit is contained in:
@@ -57,16 +57,16 @@ class RealisasiPendapatanController extends Controller
|
||||
// SEND NOTIF
|
||||
$userBendahara = User::where("role_name","bendahara")->get()->toArray();
|
||||
$userBendahara = array_column($userBendahara,"id");
|
||||
$url = "/realisasi-pendapatan/".$DbhPendapatanRealisasi->id;
|
||||
$url = "/dbh/realisasi-pendapatan/".$DbhPendapatanRealisasi->id;
|
||||
$message = "Realisasi Pendapatan telah dibuat oleh Bidang Anggaran dengan No. SP2D BUN ".$req["txt_simtrad4_sp2d_bun"];
|
||||
$this->sendNotif("anggaran", "bendahara", $userBendahara, $message, $url, "Realisasi Pendapatan", $DbhPendapatanRealisasi->id);
|
||||
|
||||
DB::commit();
|
||||
return redirect()->route('realisasi-pendapatan.index')
|
||||
return redirect('/dbh/realisasi-pendapatan')
|
||||
->with('success','Realisasi Pendapatan berhasil dibuat.');
|
||||
}catch(\Exception $e){
|
||||
DB::rollBack();
|
||||
return redirect()->route('realisasi-pendapatan.create')
|
||||
return redirect('/dbh/realisasi-pendapatan')
|
||||
->with('error',$e->getMessage());
|
||||
}
|
||||
}
|
||||
@@ -99,12 +99,12 @@ class RealisasiPendapatanController extends Controller
|
||||
|
||||
DB::commit();
|
||||
|
||||
return redirect()->route('realisasi-pendapatan.index')
|
||||
return redirect('/dbh/realisasi-pendapatan')
|
||||
->with('success','Realisasi Pendapatan berhasil diubah.');
|
||||
}catch(Throwable $e){
|
||||
|
||||
DB::rollBack();
|
||||
return redirect()->route('tx-salurdana.index')
|
||||
return redirect('/dbh/realisasi-pendapatan')
|
||||
->with('error','Realisasi Pendapatan gagal diubah!');
|
||||
}
|
||||
}
|
||||
@@ -147,13 +147,13 @@ class RealisasiPendapatanController extends Controller
|
||||
DB::beginTransaction();
|
||||
$realisasi_pendapatan->delete();
|
||||
DB::commit();
|
||||
return redirect()->route('realisasi-pendapatan.index')
|
||||
return redirect('/dbh/realisasi-pendapatan.index')
|
||||
->with('success','Data Realisasi Pendapatan berhasil dihapus!');
|
||||
|
||||
}catch(Throwable $e){
|
||||
|
||||
DB::rollBack();
|
||||
return redirect()->route('realisasi-pendapatan.index')
|
||||
return redirect('/dbh/realisasi-pendapatan.index')
|
||||
->with('error','Data Realisasi Pendapatan gagal dihapus.');
|
||||
}
|
||||
}
|
||||
@@ -193,12 +193,11 @@ class RealisasiPendapatanController extends Controller
|
||||
|
||||
DB::commit();
|
||||
|
||||
return redirect()->route('realisasi-pendapatan.index')
|
||||
->with('success','STS berhasil diinput.');
|
||||
return redirect('/dbh/realisasi-pendapatan')->with('success','STS berhasil diinput.');
|
||||
}catch(\Exception $e){
|
||||
|
||||
DB::rollBack();
|
||||
return redirect(url("realisasi-pendapatan/".$realisasiId))->with('error',$e->getMessage());
|
||||
return redirect(url("/dbh/realisasi-pendapatan/".$realisasiId))->with('error',$e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user