|
{% if 'Cash account' == journal.source_type %}
({{ 'cash'|_ }})
{% else %}
{{ journal.source_name }} →
{% endif %}
{% if first.transactiontype.type == 'Withdrawal' %}
{{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places) }}
{% elseif first.transactiontype.type == 'Deposit' %}
{{ formatAmountBySymbol(journal.amount, 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) }}
{% elseif first.transactiontype.type == 'Liability credit' %}
{{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places, false) }}
{% endif %}
{% if null != journal.foreign_amount %}
{% if first.transactiontype.type == 'Withdrawal' %}
({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }})
{% elseif first.transactiontype.type == 'Deposit' %}
({{ formatAmountBySymbol(journal.foreign_amount, 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).isoFormat(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','external_url'] %}
{% if journalHasMeta(journal.transaction_journal_id, metaField) %}
| {{ trans('list.'~metaField) }} |
{% if 'external_url' == metaField %}
{% set url = journalGetMetaField(journal.transaction_journal_id, metaField) %}
{% if url|length > 60 %}
{{ url|slice(0, 60) ~ '...' }}
{% else %}
{{ url }}
{% endif %}
{% endif %}
{% if 'external_url' != metaField %}
{{ journalGetMetaField(journal.transaction_journal_id, metaField) }}
{% endif %}
|
{% endif %}
{% endfor %}
{% if null != journal.notes and '' != journal.notes %}
| {{ trans('list.notes') }} |
{{ journal.notes|default('')|markdown }} |
{% endif %}
{% if journalHasMeta(journal.transaction_journal_id, 'recurring_total') and journalHasMeta(journal.transaction_journal_id, 'recurring_count') %}
{% set recurringTotal = journalGetMetaField(journal.transaction_journal_id, 'recurring_total') %}
{% if 0 == recurringTotal %}
{% set recurringTotal = '∞' %}
{% endif %}
| {{ trans('list.recurring_transaction') }} |
{{ trans('firefly.recurring_info', {total: recurringTotal, count: journalGetMetaField(journal.transaction_journal_id, 'recurring_count') }) }} |
{% endif %}
{% if journal.tags|length > 0 %}
| {{ 'tags'|_ }} |
{% for tag in journal.tags %}
{% endfor %}
|
{% endif %}