This commit is contained in:
James Cole
2020-09-18 16:14:17 +02:00
parent f3eaf1dd4c
commit 7a80caf26b
5 changed files with 8 additions and 39 deletions

View File

@@ -198,7 +198,8 @@ class AvailableBudgetController extends Controller
return redirect(route('budgets.index', [$start->format('Y-m-d'), $end->format('Y-m-d')]));
}
$start->startOfDay();
$end->endOfDay();
// find existing AB
$existing = $this->abRepository->find($currency, $start, $end);
if (null === $existing) {