Fixed the income report.

This commit is contained in:
James Cole
2016-05-15 17:46:53 +02:00
parent 5cd1e7c100
commit eedf6a07f0
8 changed files with 63 additions and 8 deletions

View File

@@ -166,8 +166,7 @@ class ReportHelper implements ReportHelperInterface
$object = new Income;
/** @var AccountRepositoryInterface $repos */
$repos = app(AccountRepositoryInterface::class);
$types = [TransactionType::DEPOSIT, TransactionType::TRANSFER];
$journals = $repos->journalsInPeriod($accounts, $types, $start, $end);
$journals = $repos->incomesInPeriod($accounts, $start, $end);
foreach ($journals as $entry) {
$amount = TransactionJournal::amount($entry);