mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
First attempt to make the year charts and month reports report the same thing [skip ci]
This commit is contained in:
parent
823afe877b
commit
b4bdb48f1e
@ -481,8 +481,9 @@ class TransactionJournal implements TransactionJournalInterface, CUD, CommonData
|
||||
|
||||
$incomes = $reportRepository->getIncomeForMonth($date);
|
||||
$totalIn = 0;
|
||||
/** @var \TransactionJournal $entry */
|
||||
foreach ($incomes as $entry) {
|
||||
$totalIn += floatval($entry->transactions[1]->amount);
|
||||
$totalIn += $entry->getAmount();
|
||||
}
|
||||
|
||||
return $totalIn;
|
||||
|
Loading…
Reference in New Issue
Block a user