diff --git a/app/Repositories/Tag/TagRepository.php b/app/Repositories/Tag/TagRepository.php index 330f22f137..48c77ba72c 100644 --- a/app/Repositories/Tag/TagRepository.php +++ b/app/Repositories/Tag/TagRepository.php @@ -301,9 +301,11 @@ class TagRepository implements TagRepositoryInterface $journals = $collector->getExtractedJournals(); $sums = [ - TransactionType::WITHDRAWAL => '0', - TransactionType::DEPOSIT => '0', - TransactionType::TRANSFER => '0', + TransactionType::WITHDRAWAL => '0', + TransactionType::DEPOSIT => '0', + TransactionType::TRANSFER => '0', + TransactionType::RECONCILIATION => '0', + TransactionType::OPENING_BALANCE => '0', ]; /** @var array $journal */ diff --git a/resources/lang/en_US/list.php b/resources/lang/en_US/list.php index 32b9054750..fbd669bf5e 100644 --- a/resources/lang/en_US/list.php +++ b/resources/lang/en_US/list.php @@ -105,6 +105,7 @@ return [ 'sum_withdrawals' => 'Sum of withdrawals', 'sum_deposits' => 'Sum of deposits', 'sum_transfers' => 'Sum of transfers', + 'sum_reconciliations' => 'Sum of reconciliations', 'reconcile' => 'Reconcile', 'account_on_spectre' => 'Account (Spectre)', 'account_on_ynab' => 'Account (YNAB)', diff --git a/resources/views/v1/tags/show.twig b/resources/views/v1/tags/show.twig index 64708cfeea..a8f0b05723 100644 --- a/resources/views/v1/tags/show.twig +++ b/resources/views/v1/tags/show.twig @@ -60,10 +60,18 @@ {{ trans('list.sum_deposits') }} {{ sums.Deposit|formatAmount }} - - {{ trans('list.sum_transfers') }} - {{ sums.Transfer|formatAmount }} - + {% if sums.Transfer != 0 %} + + {{ trans('list.sum_transfers') }} + {{ sums.Transfer|formatAmount }} + + {% endif %} + {% if sums.Reconciliation != 0 %} + + {{ trans('list.sum_reconciliations') }} + {{ sums.Reconciliation|formatAmount }} + + {% endif %}