From 9ae1f460b20cd6e00a4ca4af9213796f620e45c7 Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 20 Jan 2020 19:48:40 +0100 Subject: [PATCH] Fix issue https://github.com/firefly-iii/firefly-iii/issues/3027 by filtering the transaction types included in the report. --- app/Http/Controllers/Chart/ReportController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/Chart/ReportController.php b/app/Http/Controllers/Chart/ReportController.php index 0aef1aa8c9..6f240e45c0 100644 --- a/app/Http/Controllers/Chart/ReportController.php +++ b/app/Http/Controllers/Chart/ReportController.php @@ -164,6 +164,7 @@ class ReportController extends Controller $collector = app(GroupCollectorInterface::class); $collector->setRange($start, $end)->withAccountInformation(); $collector->setXorAccounts($accounts); + $collector->setTypes([TransactionType::WITHDRAWAL, TransactionType::DEPOSIT, TransactionType::RECONCILIATION, TransactionType::TRANSFER]); $journals = $collector->getExtractedJournals(); // loop. group by currency and by period.