Url fix
This commit is contained in:
@@ -131,13 +131,13 @@ class RealisasiBelanjaController extends Controller
|
||||
DB::beginTransaction();
|
||||
$realisasi_belanja->delete();
|
||||
DB::commit();
|
||||
return redirect('/realisasi-belanja')
|
||||
return redirect(URL::to("/realisasi-belanja"))
|
||||
->with('success','Data Realisasi Belanja berhasil dihapus!');
|
||||
|
||||
}catch(Throwable $e){
|
||||
|
||||
DB::rollBack();
|
||||
return redirect('/realisasi-belanja')
|
||||
return redirect(URL::to("/realisasi-belanja"))
|
||||
->with('error','Data Realisasi Belanja gagal dihapus.');
|
||||
}
|
||||
}
|
||||
@@ -178,11 +178,11 @@ class RealisasiBelanjaController extends Controller
|
||||
TempRealisasiBelanja::where("userid",Auth::user()->id)->truncate();
|
||||
Excel::import(new RealisasiBelanjaImport(strtoupper($typeDana),$subJenisDana), $tujuan_upload."/".$file->getClientOriginalName());
|
||||
DB::commit();
|
||||
return redirect('/upload-realisasi-belanja/'.$typeDana)->with('success','Data Rencana belanja berhasil diupload, Silahkan validasi data!');
|
||||
return redirect(URL::to("/upload-realisasi-belanja/".$typeDana))->with('success','Data Rencana belanja berhasil diupload, Silahkan validasi data!');
|
||||
}catch(\Exception $e){
|
||||
throw new \Exception($e->getMessage());
|
||||
DB::rollBack();
|
||||
return redirect('/upload-realisasi-belanja/'.$typeDana)->with('error',$e->getMessage());
|
||||
return redirect(URL::to("/upload-realisasi-belanja/".$typeDana))->with('error',$e->getMessage());
|
||||
}
|
||||
}
|
||||
$this->siteTitle = "Rencana Belanja";
|
||||
@@ -259,11 +259,11 @@ class RealisasiBelanjaController extends Controller
|
||||
}
|
||||
TempRealisasiBelanja::where("userid",Auth::user()->id)->truncate();
|
||||
DB::commit();
|
||||
return redirect('/upload-realisasi-belanja/'.$typeDana)->with('success','Data Realisasi belanja berhasil diupload.');
|
||||
return redirect(URL::to("/upload-realisasi-belanja/".$typeDana))->with('success','Data Realisasi belanja berhasil diupload.');
|
||||
}catch(\Exception $e){
|
||||
throw new \Exception($e->getMessage());
|
||||
DB::rollBack();
|
||||
return redirect('/upload-realisasi-belanja/'.$typeDana)->with('error',$e->getMessage());
|
||||
return redirect(URL::to("/upload-realisasi-belanja/".$typeDana))->with('error',$e->getMessage());
|
||||
}
|
||||
return view('realisasi_belanja.upload');
|
||||
}
|
||||
@@ -330,12 +330,12 @@ class RealisasiBelanjaController extends Controller
|
||||
DB::beginTransaction();
|
||||
$data->delete();
|
||||
DB::commit();
|
||||
return redirect('/realisasi-belanja/'.$data->dbh_belanja_realisasi_id."/submit")->with('success','Data detail Realisasi belanja berhasil dihapus!');
|
||||
return redirect(URL::to("/realisasi-belanja/".$data->dbh_belanja_realisasi_id."/submit"))->with('success','Data detail Realisasi belanja berhasil dihapus!');
|
||||
|
||||
}catch(Throwable $e){
|
||||
|
||||
DB::rollBack();
|
||||
return redirect('/realisasi-belanja/'.$data->dbh_belanja_realisasi_id."/submit")->with('error','Data detail Realisasi belanja gagal dihapus.');
|
||||
return redirect(URL::to("/realisasi-belanja/".$data->dbh_belanja_realisasi_id."/submit"))->with('error','Data detail Realisasi belanja gagal dihapus.');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -427,13 +427,13 @@ class RealisasiBelanjaController extends Controller
|
||||
unlink("uploadFiles/kontrak/".$BelanjaRealisasiKontrak->file_kontrak);
|
||||
BelanjaRealisasiKontrak::where("id",$id)->delete();
|
||||
DB::commit();
|
||||
return redirect('/realisasi-belanja/'.$BelanjaRealisasiKontrak->belanja_realisasi_id.'/submit')
|
||||
return redirect(URL::to("/realisasi-belanja/".$BelanjaRealisasiKontrak->belanja_realisasi_id."/submit"))
|
||||
->with('success','Data Kontrak Realisasi Belanja berhasil dihapus!');
|
||||
|
||||
}catch(Throwable $e){
|
||||
|
||||
DB::rollBack();
|
||||
return redirect('/realisasi-belanja/'.$BelanjaRealisasiKontrak->belanja_realisasi_id.'/submit')
|
||||
return redirect(URL::to("/realisasi-belanja/".$BelanjaRealisasiKontrak->belanja_realisasi_id."/submit"))
|
||||
->with('error','Data Kontrak Realisasi Belanja gagal dihapus.');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,12 +72,10 @@ class RealisasiPendapatanController extends Controller
|
||||
$this->sendNotif("anggaran", "bendahara", $userBendahara, $message, $url, "Realisasi Pendapatan", $PendapatanRealisasi->id);
|
||||
|
||||
DB::commit();
|
||||
return redirect('/realisasi-pendapatan')
|
||||
->with('success','Realisasi Pendapatan berhasil dibuat.');
|
||||
return redirect(URL::to("/realisasi-pendapatan"))->with('success','Realisasi Pendapatan berhasil dibuat.');
|
||||
}catch(\Exception $e){
|
||||
DB::rollBack();
|
||||
return redirect('/realisasi-pendapatan')
|
||||
->with('error',$e->getMessage());
|
||||
return redirect(URL::to("/realisasi-pendapatan"))->with('error',$e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -100,13 +98,11 @@ class RealisasiPendapatanController extends Controller
|
||||
|
||||
DB::commit();
|
||||
|
||||
return redirect('/realisasi-pendapatan')
|
||||
->with('success','Realisasi Pendapatan berhasil diubah.');
|
||||
return redirect(URL::to("/realisasi-pendapatan"))->with('success','Realisasi Pendapatan berhasil diubah.');
|
||||
}catch(Throwable $e){
|
||||
|
||||
DB::rollBack();
|
||||
return redirect('/realisasi-pendapatan')
|
||||
->with('error','Realisasi Pendapatan gagal diubah!');
|
||||
return redirect(URL::to("/realisasi-pendapatan"))->with('error','Realisasi Pendapatan gagal diubah!');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -148,14 +144,12 @@ class RealisasiPendapatanController extends Controller
|
||||
DB::beginTransaction();
|
||||
$realisasi_pendapatan->delete();
|
||||
DB::commit();
|
||||
return redirect('/realisasi-pendapatan.index')
|
||||
->with('success','Data Realisasi Pendapatan berhasil dihapus!');
|
||||
return redirect(URL::to("/realisasi-pendapatan.index"))->with('success','Data Realisasi Pendapatan berhasil dihapus!');
|
||||
|
||||
}catch(Throwable $e){
|
||||
|
||||
DB::rollBack();
|
||||
return redirect('/realisasi-pendapatan.index')
|
||||
->with('error','Data Realisasi Pendapatan gagal dihapus.');
|
||||
return redirect(URL::to("/realisasi-pendapatan.index"))->with('error','Data Realisasi Pendapatan gagal dihapus.');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -187,7 +181,7 @@ class RealisasiPendapatanController extends Controller
|
||||
$data = PendapatanRealisasi::firstOrNew(array('id' => $realisasiId));
|
||||
|
||||
if ($data["simtrad4_bersih"]<>replaceMoney($req["rkud_jumlah"])){
|
||||
return redirect(url("/realisasi-pendapatan/".$realisasiId))->with('error', "Jumlah STS harus sama dengan Rencana !");
|
||||
return redirect(URL::to("/realisasi-pendapatan/".$realisasiId))->with('error', "Jumlah STS harus sama dengan Rencana !");
|
||||
}
|
||||
$data["rkud_tgl"] = $req["rkud_tgl"];
|
||||
$data["rkud_no_sts"] = $req["rkud_no_sts"];
|
||||
@@ -198,11 +192,11 @@ class RealisasiPendapatanController extends Controller
|
||||
|
||||
DB::commit();
|
||||
|
||||
return redirect('/realisasi-pendapatan')->with('success','STS berhasil diinput.');
|
||||
return redirect(URL::to("/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::to("/realisasi-pendapatan/".$realisasiId))->with('error',$e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user