Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Filter out opening balances. #839
James Cole4b5f500dc188
diff --git a/app/Http/Controllers/CategoryController.php b/app/Http/Controllers/CategoryController.phpindex c98726e353..9fcefa4737 100644--- a/app/Http/Controllers/CategoryController.php+++ b/app/Http/Controllers/CategoryController.php@@ -204,7 +204,8 @@ class CategoryController extends Controller/** @var JournalCollectorInterface $collector */$collector = app(JournalCollectorInterface::class);- $collector->setAllAssetAccounts()->setRange($start, $end)->setLimit($pageSize)->setPage($page)->withoutCategory()->withOpposingAccount();+ $collector->setAllAssetAccounts()->setRange($start, $end)->setLimit($pageSize)->setPage($page)->withoutCategory()->withOpposingAccount()+ ->setTypes([TransactionType::WITHDRAWAL,TransactionType::DEPOSIT, TransactionType::TRANSFER]);$collector->removeFilter(InternalTransferFilter::class);$journals = $collector->getPaginatedJournals();$journals->setPath(route('categories.no-category'));@@ -358,11 +359,11 @@ class CategoryController extends Controller$end = Navigation::startOfPeriod($end, $range);$currentEnd = Navigation::endOfPeriod($end, $range);- // count journals without budget in this period:+ // count journals without category in this period:/** @var JournalCollectorInterface $collector */$collector = app(JournalCollectorInterface::class);$collector->setAllAssetAccounts()->setRange($end, $currentEnd)->withoutCategory()- ->withOpposingAccount();+ ->withOpposingAccount()->setTypes([TransactionType::WITHDRAWAL,TransactionType::DEPOSIT, TransactionType::TRANSFER]);$collector->removeFilter(InternalTransferFilter::class);$count = $collector->getJournals()->count();