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