Skip to content

Firefly III: a personal finances manager

Fix #2702

James Coleb4af70421dec
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 @@
<td>{{ trans('list.sum_deposits') }}</td>
<td> {{ sums.Deposit|formatAmount }}</td>
</tr>
- <tr>
- <td>{{ trans('list.sum_transfers') }}</td>
- <td> {{ sums.Transfer|formatAmount }}</td>
- </tr>
+ {% if sums.Transfer != 0 %}
+ <tr>
+ <td>{{ trans('list.sum_transfers') }}</td>
+ <td> {{ sums.Transfer|formatAmount }}</td>
+ </tr>
+ {% endif %}
+ {% if sums.Reconciliation != 0 %}
+ <tr>
+ <td>{{ trans('list.sum_reconciliations') }}</td>
+ <td> {{ sums.Reconciliation|formatAmount }}</td>
+ </tr>
+ {% endif %}
</table>
</div>
<div class="box-footer">
@@ -81,8 +89,6 @@
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">{{ 'location'|_ }}</h3>
-
-
<div class="box-tools pull-right">
<div class="btn-group">
<button class="btn btn-box-tool dropdown-toggle" data-toggle="dropdown"><i class="fa fa-ellipsis-v"></i></button>
@@ -132,7 +138,7 @@
</div>
</div>
<div class="box-body">
- {% include 'list/groups' %}
+ {% include 'list.groups' with {showBudget:true, showCategory: true} %}
{% if periods|length > 0 %}
<p>