To make budget report more clear, add spent amount to "spent" column.

This commit is contained in:
James Cole 2015-12-02 08:35:15 +01:00
parent 1966d87ce6
commit 37e2f097ba

View File

@ -303,6 +303,7 @@ class ReportHelper implements ReportHelperInterface
$noBudget = $repository->getWithoutBudgetSum($start, $end); $noBudget = $repository->getWithoutBudgetSum($start, $end);
$budgetLine = new BudgetLine; $budgetLine = new BudgetLine;
$budgetLine->setOverspent($noBudget); $budgetLine->setOverspent($noBudget);
$budgetLine->setSpent($noBudget);
$object->addOverspent($noBudget); $object->addOverspent($noBudget);
$object->addBudgetLine($budgetLine); $object->addBudgetLine($budgetLine);