mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-18 20:43:03 -06:00
Fix rounding for amounts.
This commit is contained in:
parent
7329098ed8
commit
094ddfcf5f
@ -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'));
|
||||
|
Loading…
Reference in New Issue
Block a user