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