mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix negative amount thing.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user