Fix rounding for amounts.

This commit is contained in:
James Cole 2017-08-26 10:01:48 +02:00
parent 7329098ed8
commit 094ddfcf5f
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -451,6 +451,7 @@ class BudgetController extends Controller
$end = session('end', new Carbon);
$defaultCurrency = Amount::getDefaultCurrency();
$available = $this->repository->getAvailableBudget($defaultCurrency, $start, $end);
$available = round($available, $defaultCurrency->decimal_places);
return view('budgets.income', compact('available', 'start', 'end'));