From 4ec830a2e3dd16b9222cfded55ec9bbf37d5cc42 Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 25 Sep 2017 06:10:04 +0200 Subject: [PATCH] Fix list overview [skip ci] --- app/Repositories/Tag/TagRepository.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Repositories/Tag/TagRepository.php b/app/Repositories/Tag/TagRepository.php index d33c1639c8..965ec6092e 100644 --- a/app/Repositories/Tag/TagRepository.php +++ b/app/Repositories/Tag/TagRepository.php @@ -17,6 +17,7 @@ namespace FireflyIII\Repositories\Tag; use Carbon\Carbon; use FireflyIII\Helpers\Collector\JournalCollectorInterface; use FireflyIII\Helpers\Filter\InternalTransferFilter; +use FireflyIII\Helpers\Filter\TransferFilter; use FireflyIII\Models\Tag; use FireflyIII\Models\TransactionJournal; use FireflyIII\Models\TransactionType; @@ -268,7 +269,7 @@ class TagRepository implements TagRepositoryInterface * @param Carbon|null $start * @param Carbon|null $end * - * @return string + * @return array */ public function sumsOfTag(Tag $tag, ?Carbon $start, ?Carbon $end): array { @@ -279,7 +280,7 @@ class TagRepository implements TagRepositoryInterface $collector->setRange($start, $end); } - $collector->setAllAssetAccounts()->setTag($tag); + $collector->setAllAssetAccounts()->setTag($tag)->withOpposingAccount(); $collector->removeFilter(InternalTransferFilter::class); $journals = $collector->getJournals();