mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-09-03 20:52:58 -05:00
This should clean up the monthly report a bit. See issue #159
This commit is contained in:
@@ -52,12 +52,15 @@ class BudgetReportHelper implements BudgetReportHelperInterface
|
|||||||
|
|
||||||
// no repetition(s) for this budget:
|
// no repetition(s) for this budget:
|
||||||
if ($repetitions->count() == 0) {
|
if ($repetitions->count() == 0) {
|
||||||
$spent = array_sum($totalSpent);
|
|
||||||
$budgetLine = new BudgetLine;
|
$spent = array_sum($totalSpent);
|
||||||
$budgetLine->setBudget($budget);
|
if ($spent > 0) {
|
||||||
$budgetLine->setOverspent($spent);
|
$budgetLine = new BudgetLine;
|
||||||
$object->addOverspent($spent);
|
$budgetLine->setBudget($budget);
|
||||||
$object->addBudgetLine($budgetLine);
|
$budgetLine->setOverspent($spent);
|
||||||
|
$object->addOverspent($spent);
|
||||||
|
$object->addBudgetLine($budgetLine);
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user