mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-17 07:08:19 +00:00
Support any bill in any range.
This commit is contained in:
@@ -12,6 +12,7 @@ use Redirect;
|
||||
use Session;
|
||||
use URL;
|
||||
use View;
|
||||
use Input;
|
||||
|
||||
/**
|
||||
* Class BillController
|
||||
@@ -168,6 +169,10 @@ class BillController extends Controller
|
||||
$bill = $repository->store($billData);
|
||||
Session::flash('success', 'Bill "' . e($bill->name) . '" stored.');
|
||||
|
||||
if (intval(Input::get('create_another')) === 1) {
|
||||
return Redirect::route('bills.create')->withInput();
|
||||
}
|
||||
|
||||
return Redirect::route('bills.index');
|
||||
|
||||
}
|
||||
@@ -195,6 +200,10 @@ class BillController extends Controller
|
||||
|
||||
$bill = $repository->update($bill, $billData);
|
||||
|
||||
if (intval(Input::get('return_to_edit')) === 1) {
|
||||
return Redirect::route('bills.edit', $bill->id);
|
||||
}
|
||||
|
||||
Session::flash('success', 'Bill "' . e($bill->name) . '" updated.');
|
||||
|
||||
return Redirect::route('bills.index');
|
||||
|
||||
Reference in New Issue
Block a user