mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-06 12:45:30 +00:00
This commit is contained in:
@@ -122,8 +122,8 @@ class BoxController extends Controller
|
|||||||
// calculate with available budget.
|
// calculate with available budget.
|
||||||
$leftToSpendAmount = bcadd($totalAvailableSum, $spentAmount);
|
$leftToSpendAmount = bcadd($totalAvailableSum, $spentAmount);
|
||||||
app('log')->debug(sprintf('So left to spend is %s', $leftToSpendAmount));
|
app('log')->debug(sprintf('So left to spend is %s', $leftToSpendAmount));
|
||||||
if (1 === bccomp($leftToSpendAmount, '0')) {
|
if (bccomp($leftToSpendAmount, '0') >= 0) {
|
||||||
app('log')->debug('Left to spend is positive!');
|
app('log')->debug('Left to spend is positive or zero!');
|
||||||
$boxTitle = (string)trans('firefly.left_to_spend');
|
$boxTitle = (string)trans('firefly.left_to_spend');
|
||||||
$days = $today->diffInDays($end) + 1;
|
$days = $today->diffInDays($end) + 1;
|
||||||
$display = 1; // not overspent
|
$display = 1; // not overspent
|
||||||
|
Reference in New Issue
Block a user