mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-03 04:00:40 -06:00
Extra code for #3172
This commit is contained in:
parent
25be550e6d
commit
a939a5ba30
@ -103,7 +103,7 @@ class BoxController extends Controller
|
||||
if ($availableBudgets->count() > 0) {
|
||||
$display = 0; // assume user overspent
|
||||
$boxTitle = (string)trans('firefly.overspent');
|
||||
$totalAvailableSum = $availableBudgets->sum('amount');
|
||||
$totalAvailableSum = (string)$availableBudgets->sum('amount');
|
||||
// calculate with available budget.
|
||||
$leftToSpendAmount = bcadd($totalAvailableSum, $spentAmount);
|
||||
if (1 === bccomp($leftToSpendAmount, '0')) {
|
||||
|
Loading…
Reference in New Issue
Block a user