Skip to content

Firefly III: a personal finances manager

View updates. [skip ci]

James Cole446ab62d38e4
diff --git a/resources/views/popup/list/journals.twig b/resources/views/popup/list/journals.twig
index f4bf459842..a75d9e445e 100644
--- a/resources/views/popup/list/journals.twig
+++ b/resources/views/popup/list/journals.twig
@@ -39,27 +39,23 @@
<a href="{{ route('transactions.show',journal.id) }}" title="{{ journal.description }}">{{ journal.description }}</a>
</td>
<td>
- {{ journal|formatJournal }}
+ {% if not accountPerspective %}
+ {{ journal|formatJournal }}
+ {% else %}
+ {{ formatPerspective(journal, accountPerspective)|raw }}
+ {% endif %}
</td>
<td class="hidden-sm hidden-xs">
{{ journal.date.formatLocalized(monthAndDayFormat) }}
</td>
{% if not hideSource %}
<td class="hidden-xs">
- {% if journal.source_account_type == 'Cash account' %}
- <span class="text-success">(cash)</span>
- {% else %}
- <a href="{{ route('accounts.show',journal.source_account_id) }}">{{ journal.source_account_name }}</a>
- {% endif %}
+ {{ sourceAccount(journal)|raw }}
</td>
{% endif %}
{% if not hideDestination %}
<td class="hidden-xs">
- {% if journal.destination_account_type == 'Cash account' %}
- <span class="text-success">(cash)</span>
- {% else %}
- <a href="{{ route('accounts.show',journal.destination_account_id) }}">{{ journal.destination_account_name }}</a>
- {% endif %}
+ {{ destinationAccount(journal)|raw }}
</td>
{% endif %}
diff --git a/resources/views/popup/report/income-entry.twig b/resources/views/popup/report/income-entry.twig
index 504960ea69..71ffb20f65 100644
--- a/resources/views/popup/report/income-entry.twig
+++ b/resources/views/popup/report/income-entry.twig
@@ -8,6 +8,7 @@
<div class="modal-body">
{% set hideBudget = true %}
{% set hideSource = true %}
+ {% set accountPerspective = account %}
{% include 'popup/list/journals.twig' %}
</div>
<div class="modal-footer">