Fix issue https://github.com/firefly-iii/firefly-iii/issues/3027 by filtering the transaction types included in the report.

This commit is contained in:
James Cole 2020-01-20 19:48:40 +01:00
parent 154ac8b73c
commit 9ae1f460b2

View File

@ -164,6 +164,7 @@ class ReportController extends Controller
$collector = app(GroupCollectorInterface::class); $collector = app(GroupCollectorInterface::class);
$collector->setRange($start, $end)->withAccountInformation(); $collector->setRange($start, $end)->withAccountInformation();
$collector->setXorAccounts($accounts); $collector->setXorAccounts($accounts);
$collector->setTypes([TransactionType::WITHDRAWAL, TransactionType::DEPOSIT, TransactionType::RECONCILIATION, TransactionType::TRANSFER]);
$journals = $collector->getExtractedJournals(); $journals = $collector->getExtractedJournals();
// loop. group by currency and by period. // loop. group by currency and by period.