First attempt to make the year charts and month reports report the same thing [skip ci]

This commit is contained in:
James Cole 2015-01-01 21:23:12 +01:00
parent 823afe877b
commit b4bdb48f1e

View File

@ -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;