Url fix
This commit is contained in:
@@ -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