This commit is contained in:
James Cole
2016-11-28 19:45:36 +01:00
parent 885d0f1464
commit f0fd5324ea
2 changed files with 7 additions and 0 deletions

View File

@@ -227,6 +227,12 @@ class ReportController extends Controller
return redirect(route('reports.index'));
}
if ($request->getCategoryList()->count() === 0 && $reportType === 'category') {
Session::flash('error', trans('firefly.select_more_than_one_category'));
return redirect(route('reports.index'));
}
if ($end < $start) {
return view('error')->with('message', trans('firefly.end_after_start_date'));
}