Renamed the other method.

This commit is contained in:
James Cole
2017-01-05 09:10:04 +01:00
parent 2d8ca363db
commit a872cf7061
4 changed files with 4 additions and 4 deletions

View File

@@ -213,7 +213,7 @@ class BalanceReportHelper implements BalanceReportHelperInterface
$empty = new BalanceLine;
foreach ($accounts as $account) {
$spent = $this->budgetRepository->spentInPeriodWithoutBudget(new Collection([$account]), $start, $end);
$spent = $this->budgetRepository->spentInPeriodWoBudget(new Collection([$account]), $start, $end);
// budget
$budgetEntry = new BalanceEntry;
$budgetEntry->setAccount($account);

View File

@@ -80,7 +80,7 @@ class BudgetReportHelper implements BudgetReportHelperInterface
}
}
$noBudget = $this->repository->spentInPeriodWithoutBudget($accounts, $start, $end); // stuff outside of budgets
$noBudget = $this->repository->spentInPeriodWoBudget($accounts, $start, $end); // stuff outside of budgets
$budgetLine = new BudgetLine;
$budgetLine->setOverspent($noBudget)->setSpent($noBudget);
$object->addOverspent($noBudget)->addBudgetLine($budgetLine);