{% extends "./layout/default" %} {% block breadcrumbs %} {{ Breadcrumbs.render(Route.getCurrentRoute.getName, journal) }} {% endblock %} {% block content %}

{{ 'transaction_journal_information'|_ }}

{{ trans('list.type') }} {{ journal.transactiontype.type|_ }}
{{ trans('list.description') }} {{ journal.description }}
{{ 'source_accounts'|_ }} {{ sourceAccount(journal)|raw }}
{{ 'destination_accounts'|_ }} {{ destinationAccount(journal)|raw }}
{{ 'total_amount'|_ }} {{ journal|journalTotalAmount }} {# if more transactions, list each one: #} {% if transactions|length > 1 %} ({% for transaction in transactions %}{{ transaction|transactionArrayAmount }}{% if loop.index != loop.length %}, {% endif %}{% endfor %}) {% endif %}
{{ trans('list.date') }} {{ journal.date.formatLocalized(monthAndDayFormat) }}
{% if journal.piggyBankEvents|length > 0 %}

{{ 'piggyBanks'|_ }}

{% include 'list/piggy-bank-events' with {'events': events, 'showPiggyBank':true} %}
{% endif %}

{{ 'transaction_journal_meta'|_ }}

{% if journal.hasMeta('interest_date') %} {% endif %} {% if journal.hasMeta('book_date') %} {% endif %} {% if journal.hasMeta('process_date') %} {% endif %} {% if journal.hasMeta('due_date') %} {% endif %} {% if journal.hasMeta('payment_date') %} {% endif %} {% if journal.hasMeta('invoice_date') %} {% endif %} {% set intRef = getMetaField(journal, 'internal_reference') %} {% if intRef != "" %} {% endif %} {% if journal.notes.count == 1 %} {% endif %} {% if journal.bill %} {% endif %} {% if journal.tags|length > 0 %} {% endif %}
{{ 'categories'|_ }} {{ journalCategories(journal)|raw }}
{{ 'budgets'|_ }} {{ journalBudgets(journal)|raw }}
{{ trans('list.interest_date') }} {{ getMetaDate(journal,'interest_date').formatLocalized(monthAndDayFormat) }}
{{ trans('list.book_date') }} {{ getMetaDate(journal,'book_date').formatLocalized(monthAndDayFormat) }}
{{ trans('list.process_date') }} {{ getMetaDate(journal,'process_date').formatLocalized(monthAndDayFormat) }}
{{ trans('list.due_date') }} {{ getMetaDate(journal,'due_date').formatLocalized(monthAndDayFormat) }}
{{ trans('list.payment_date') }} {{ getMetaDate(journal,'payment_date').formatLocalized(monthAndDayFormat) }}
{{ trans('list.invoice_date') }} {{ getMetaDate(journal,'invoice_date').formatLocalized(monthAndDayFormat) }}
{{ trans('list.internal_reference') }} {{ intRef }}
{{ trans('list.notes') }} {{ journal.notes.first.text|markdown }}
{{ 'bill'|_ }} {{ journal.bill.name }}
{{ 'tags'|_ }} {% for tag in journal.tags %}

{% if tag.tagMode == 'nothing' %} {% endif %} {% if tag.tagMode == 'balancingAct' %} {% endif %} {% if tag.tagMode == 'advancePayment' %} {% endif %} {{ tag.tag }}

{% endfor %}
{% if journal.attachments|length > 0 %}

{{ 'attachments'|_ }}

{% for att in journal.attachments %} {% endfor %}
{% if att.title %} {{ att.title }} {% else %} {{ att.filename }} {% endif %} ({{ att.size|filesize }}) {% if att.description %}
{{ att.description }} {% endif %}
{% endif %} {# show links: #} {% if links.count > 0 %}

{{ 'journal_links'|_ }}

{% for link in links %} {% endfor %}
{{ ('this_'~(what|lower))|_ }} {% if link.source.id == journal.id %} {{ journalLinkTranslation('outward', link.linkType.outward) }} #{{ link.destination.id }}: {{ link.destination.description }} ({{ link.destination|journalTotalAmount }}) {% else %} {{ journalLinkTranslation('inward', link.linkType.inward) }} #{{ link.source.id }}: {{ link.source.description }} ({{ link.source|journalTotalAmount }}) {% endif %} {% if link.notes.count == 1 %}
{{ link.notes.first.text|markdown }} {% endif %}

{% endif %}

{{ 'transactions'|_ }}

{% for transaction in transactions %} {% endfor %}
{{ trans('list.source_account') }} {{ trans('list.destination_account') }} {{ trans('list.amount') }}
{% if transaction.source_account_type == 'Cash account' %} ({{ 'cash'|_ }}) {% else %} {{ transaction.source_account_name }} {% endif %} {% if transaction.destination_account_type == 'Cash account' %} ({{ 'cash'|_ }}) {% else %} {{ transaction.destination_account_name }} {% endif %} {{ transaction|transactionArrayAmount }}
{# link journal modal:#} {% endblock %} {% block scripts %} {% endblock %}