{% extends "./layout/default" %} {% block breadcrumbs %} {{ Breadcrumbs.renderIfExists(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|formatJournal }}
{{ 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 %} {% if journal.hasMeta('internal_reference') and journal.getMeta('internal_reference') != "" %} {% endif %} {% if journal.hasMeta('notes') and journal.getMeta('notes') != "" %} {% endif %} {% if journal.bill %} {% endif %} {% if journal.tags|length > 0 %} {% endif %}
{{ 'categories'|_ }} {{ journalCategories(journal)|raw }}
{{ 'budgets'|_ }} {{ journalBudgets(journal)|raw }}
{{ trans('list.interest_date') }} {{ journal.getMeta('interest_date').formatLocalized(monthAndDayFormat) }}
{{ trans('list.book_date') }} {{ journal.getMeta('book_date').formatLocalized(monthAndDayFormat) }}
{{ trans('list.process_date') }} {{ journal.getMeta('process_date').formatLocalized(monthAndDayFormat) }}
{{ trans('list.due_date') }} {{ journal.getMeta('due_date').formatLocalized(monthAndDayFormat) }}
{{ trans('list.payment_date') }} {{ journal.getMeta('payment_date').formatLocalized(monthAndDayFormat) }}
{{ trans('list.invoice_date') }} {{ journal.getMeta('invoice_date').formatLocalized(monthAndDayFormat) }}
{{ trans('list.internal_reference') }} {{ journal.getMeta('internal_reference') }}
{{ trans('list.notes') }} {{ journal.getMeta('notes')|nl2br }}
{{ '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 %} {% if transactions|length == 1 %}

{{ 'transaction_journal_other_options'|_ }}

{% if journal.transactionType.type != "Withdrawal" %}

{{ ('convert_'~journal.transactionType.type~'_to_withdrawal')|_ }}

{% endif %} {% if journal.transactionType.type != "Deposit" %}

{{ ('convert_'~journal.transactionType.type~'_to_deposit')|_ }}

{% endif %} {% if journal.transactionType.type != "Transfer" %}

{{ ('convert_'~journal.transactionType.type~'_to_transfer')|_ }}

{% endif %} {% if transactions|length == 1 %}

{{ ('clone_'~journal.transactionType.type|lower)|_ }}

{% endif %}
{% endif %}

{{ 'transactions'|_ }}

{% for transaction in transactions %} {% endfor %}
{{ trans('list.description') }} {{ trans('list.source_account') }} Δ {{ trans('list.destination_account') }} Δ {{ trans('list.amount') }} {{ trans('list.budget') }} {{ trans('list.category') }}
{% if transaction.description == "" %} {{ journal.description }} {% else %} {{ transaction.description }} {% endif %} {% if transaction.source_account_type == 'Cash account' %} (cash) {% else %} {{ transaction.source_account_name }} {% endif %} {{ formatAnything(journal.transactionCurrency, transaction.source_account_before) }} ⟶ {{ formatAnything(journal.transactionCurrency, transaction.source_account_after) }} {% if transaction.destination_account_type == 'Cash account' %} (cash) {% else %} {{ transaction.destination_account_name }} {% endif %} {{ formatAnything(journal.transactionCurrency, transaction.destination_account_before) }} ⟶ {{ formatAnything(journal.transactionCurrency, transaction.destination_account_after) }} {% if journal.transactiontype.type == 'Deposit' %} {{ formatAnything(journal.transactionCurrency, transaction.destination_amount) }} {% endif %} {% if journal.transactiontype.type == 'Withdrawal' %} {{ formatAnything(journal.transactionCurrency, transaction.source_amount) }} {% endif %} {% if journal.transactiontype.type == 'Transfer' %} {{ formatAnythingPlain(journal.transactionCurrency, transaction.destination_amount) }} {% endif %} {{ transactionIdBudgets(transaction.source_id) }} {{ transactionIdCategories(transaction.source_id) }}
{% endblock %}