mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
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:
parent
154ac8b73c
commit
9ae1f460b2
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user