This commit is contained in:
James Cole
2018-04-03 19:12:59 +02:00
parent 03a42976b1
commit 609c193b88
7 changed files with 26 additions and 9 deletions

View File

@@ -269,6 +269,11 @@ class BillController extends Controller
{
$billData = $request->getBillData();
$bill = $repository->store($billData);
if (null === $bill) {
$request->session()->flash('error', (string)trans('firefly.bill_store_error'));
return redirect(route('bills.create'))->withInput();
}
$request->session()->flash('success', (string)trans('firefly.stored_new_bill', ['name' => $bill->name]));
Preferences::mark();