mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
These budget charts are the worst, I'm telling you.
This commit is contained in:
@@ -124,8 +124,8 @@ class BudgetReportHelper implements BudgetReportHelperInterface
|
||||
$set = new Collection;
|
||||
/** @var Budget $budget */
|
||||
foreach ($budgets as $budget) {
|
||||
$expenses = $repository->getExpensesPerDay($budget, $start, $end, $accounts);
|
||||
$total = strval($expenses->sum('dailyAmount'));
|
||||
$expenses = $repository->spentPerDay($budget, $start, $end, $accounts);
|
||||
$total = strval(array_sum($expenses));
|
||||
if (bccomp($total, '0') === -1) {
|
||||
$set->push($budget);
|
||||
}
|
||||
|
Reference in New Issue
Block a user