mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-23 12:27:05 +00:00
Code clean up.
This commit is contained in:
@@ -70,9 +70,7 @@ class BalanceReportHelper implements BalanceReportHelperInterface
|
||||
Log::debug('Build new report.');
|
||||
// build a balance header:
|
||||
$header = new BalanceHeader;
|
||||
$budgets = $this->budgetRepository->getBudgets();
|
||||
$limitRepetitions = $this->budgetRepository->getAllBudgetLimitRepetitions($start, $end);
|
||||
$spentData = $this->budgetRepository->journalsInPeriod($budgets, $accounts, $start, $end);
|
||||
foreach ($accounts as $account) {
|
||||
$header->addAccount($account);
|
||||
Log::debug('Add account #' . $account->id . ' to header.');
|
||||
|
@@ -54,7 +54,6 @@ class BudgetReportHelper implements BudgetReportHelperInterface
|
||||
// spent for budget in time range:
|
||||
$spent = $repository->spentInPeriod(new Collection([$budget]), $accounts, $start, $end);
|
||||
|
||||
// $spent = array_sum($totalSpent);
|
||||
if ($spent > 0) {
|
||||
$budgetLine = new BudgetLine;
|
||||
$budgetLine->setBudget($budget);
|
||||
|
Reference in New Issue
Block a user