Fix rounding thing.

This commit is contained in:
James Cole 2020-05-16 13:09:37 +02:00
parent a4f66b3d86
commit 58585d03c6

View File

@ -157,6 +157,7 @@ class AvailableBudgetController extends Controller
*/
public function edit(AvailableBudget $availableBudget, Carbon $start, Carbon $end)
{
$availableBudget->amount = round($availableBudget->amount, $availableBudget->transactionCurrency->decimal_places);
return view('budgets.available-budgets.edit', compact('availableBudget', 'start', 'end'));
}