Fix negative amount thing.

This commit is contained in:
James Cole
2015-12-12 20:16:30 +01:00
parent 4838670649
commit 4004c53e1b
2 changed files with 12 additions and 2 deletions

View File

@@ -515,7 +515,7 @@ class ReportHelper implements ReportHelperInterface
$object = new Expense;
$set = $this->query->expenseInPeriodCorrectedForList($start, $end, $accounts);
foreach ($set as $entry) {
$object->addToTotal($entry->amount);
$object->addToTotal($entry->amount); // can be positive, if it's a transfer
$object->addOrCreateExpense($entry);
}