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

{{ 'transaction_journal_information'|_ }}

{{ trans('list.type') }} {{ first.transactiontype.type|_ }}
{{ trans('list.description') }} {% if splits == 1 %} {{ first.description }} {% else %} {{ transactionGroup.title }} {% endif %}
{{ trans('list.date') }} {{ first.date.formatLocalized(dateTimeFormat) }}

{{ 'transaction_journal_meta'|_ }}

{% if type != 'Withdrawal' or splits == 1 %} {% endif %} {% if type != 'Deposit' or splits == 1 %} {% endif %}
{{ 'source_accounts'|_ }} {% for journal in groupArray.transactions %} {% if 'Cash account' == journal.source_type %} ({{ 'cash'|_ }}) {% else %} {{ journal.source_name }} {% endif %} {% if loop.index0 != groupArray.transactions|length -1 %}, {% endif %} {% endfor %}
{{ 'destination_accounts'|_ }} {% for journal in groupArray.transactions %} {% if 'Cash account' == journal.destination_type %} ({{ 'cash'|_ }}) {% else %} {{ journal.destination_name }} {% endif %} {% if loop.index0 != groupArray.transactions|length -1 %}, {% endif %} {% endfor %}
{{ 'total_amount'|_ }} {% for amount in amounts %} {% if type == 'Withdrawal' or type == 'Deposit' %} {{ formatAmountBySymbol(amount.amount*-1,amount.symbol, amount.decimal_places) }}{% if loop.index0 != amounts|length -1 %}, {% endif %} {% elseif type == 'Transfer' %} {{ formatAmountBySymbol(amount.amount, amount.symbol, amount.decimal_places, false) }}{% if loop.index0 != amounts|length -1 %}, {% endif %} {% endif %} {% endfor %}
{% if splits > 1 %}

{{ 'splits'|_ }}

{% endif %} {% set boxSize=6 %} {% if(splits == 2) %} {% set boxSize=6 %} {% endif %} {% if (splits > 2) %} {% set boxSize = 4 %} {% endif %}
{% for index,journal in groupArray.transactions %}

{{ journal.description }} {% if journal.reconciled %} {% endif %} {% if splits > 1 %} {{ index+1 }} / {{ splits }} {% endif %}

{% if null != journal.category_id %} {% endif %} {% if null != journal.budget_id and type == 'Withdrawal' %} {% endif %} {% if null != journal.bill_id and type == 'Withdrawal' %} {% endif %} {% for dateField in ['interest_date','book_date','process_date','due_date','payment_date','invoice_date'] %} {% if journalHasMeta(journal.transaction_journal_id, dateField) %} {% endif %} {% endfor %} {% for metaField in ['external_id','bunq_payment_id','internal_reference','sepa_batch_id','sepa_ct_id','sepa_ct_op','sepa_db','sepa_country','sepa_cc','sepa_ep','sepa_ci'] %} {% if journalHasMeta(journal.transaction_journal_id, metaField) %} {% endif %} {% endfor %} {% if null != journal.notes and '' != journal.notes %} {% endif %} {% if journal.tags|length > 0 %} {% endif %}
{% if 'Cash account' == journal.source_type %} ({{ 'cash'|_ }}) {% else %} {{ journal.source_name }} → {% endif %} {% if type == 'Withdrawal' or type == 'Deposit' %} {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places) }} {% elseif type == 'Transfer' or type == 'Opening balance' %} {{ formatAmountBySymbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places, false) }} {% endif %} {% if null != journal.foreign_amount %} {% if type == 'Withdrawal' or type == 'Deposit' %} ({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }}) {% elseif type == 'Transfer' %} ({{ formatAmountBySymbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places, false) }}) {% endif %} {% endif %} → {% if 'Cash account' == journal.destination_type %} ({{ 'cash'|_ }}) {% else %} {{ journal.destination_name }} {% endif %}
{{ 'category'|_ }} {{ journal.category_name }}
{{ 'budget'|_ }} {{ journal.budget_name }}
{{ 'bill'|_ }} {{ journal.bill_name }}
{{ trans('list.'~dateField) }} {{ journalGetMetaDate(journal.transaction_journal_id, dateField).formatLocalized(monthAndDayFormat) }}
{{ trans('list.'~metaField) }} {{ journalGetMetaField(journal.transaction_journal_id, metaField) }}
{{ trans('list.notes') }} {{ journal.notes|markdown }}
{{ 'tags'|_ }} {% for tag in journal.tags %}

{{ tag }}

{% endfor %}
{% if links[journal.transaction_journal_id]|length > 0 %}

{{ 'journal_links'|_ }}

{% for link in links[journal.transaction_journal_id] %} {% endfor %}
{{ link.link }} "{{ link.description }}" ({{ link.amount|raw }}) {% if '' != link.foreign_amount %} ({{ link.foreign_amount|raw }}) {% endif %}
{% endif %} {% if attachments[journal.transaction_journal_id]|length > 0 %}

{{ 'attachments'|_ }}

{% for attachment in attachments[journal.transaction_journal_id] %} {% endfor %}
{% if attachment.file_exists %} {% endif %} {% if not attachment.file_exists %} {% endif %}
{% if attachment.file_exists %} {% if attachment.title %} {{ attachment.title }} {% else %} {{ attachment.filename }} {% endif %} ({{ attachment.size|filesize }}) {% if null != attachment.notes and '' != attachment.notes %} {{ attachment.notes|markdown }} {% endif %} {% endif %} {% if not attachment.file_exists %} {% if attachment.title %} {{ attachment.title }} {% else %} {{ attachment.filename }} {% endif %}
{{ 'attachment_not_found'|_ }} {% endif %}
{% endif %} {% if events[journal.transaction_journal_id]|length > 0 %}

{{ 'piggy_events'|_ }}

{% for event in events[journal.transaction_journal_id] %} {% endfor %}
{{ event.amount|raw }} {{ event.piggy }}
{% endif %}
{% endfor %}
{# modal for linking journals. Will be filled by AJAX #} {% endblock %} {% block scripts %} {% endblock %}