{% extends "./layout/default" %} {% block breadcrumbs %} {{ Breadcrumbs.render(Route.getCurrentRoute.getName, journal) }} {% endblock %} {% block content %}
| {{ trans('list.type') }} | {{ journal.transactiontype.type|_ }} |
| {{ trans('list.description') }} | {% if transactions[0].reconciled %} {% endif %} {{ 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 > 2 %} ({% for transaction in transactions %} {% if transaction.type == 'Deposit' and transaction.amount > 0 %} {{ transaction|transactionArrayAmount }}{% if loop.index != loop.length %}, {% endif %} {% endif %} {% if transaction.type == 'Withdrawal' and transaction.amount < 0 %} {{ transaction|transactionArrayAmount }}{% if loop.index != loop.length %}, {% endif %} {% endif %} {% if transaction.type == 'Transfer' and transaction.amount > 0 %} {{ transaction|transactionArrayAmount }}{% if loop.index != loop.length %}, {% endif %} {% endif %} {% endfor %}) {% endif %} |
| {{ trans('list.date') }} | {{ journal.date.formatLocalized(dateTimeFormat) }} |
| {{ 'categories'|_ }} | {{ journalCategories(journal)|raw }} |
| {{ 'budgets'|_ }} | {{ journalBudgets(journal)|raw }} |
| {{ trans('list.'~dateField) }} | {{ journalGetMetaDate(journal,dateField).formatLocalized(monthAndDayFormat) }} |
| {{ trans('list.'~metaField) }} | {{ journalGetMetaField(journal, metaField) }} |
| {{ trans('list.notes') }} | {{ journal.notes.first.text|markdown }} |
| {{ 'bill'|_ }} | {{ journal.bill.name }} |
| {{ 'tags'|_ }} |
{% for tag in journal.tags %}
{{ tag.tag }}{% endfor %} |
|
{% if att.file_exists %}
{% if att.title %}
{{ att.title }}
{% else %}
{{ att.filename }}
{% endif %}
({{ att.size|filesize }})
{% if att.notes.first %}
{{ att.notes.first.text|markdown }}
{% endif %}
{% endif %}
{% if not att.file_exists %}
{% if att.title %}
{{ att.title }}
{% else %}
{{ att.filename }}
{% endif %}
{{ 'attachment_not_found'|_ }} {% endif %} |
|
{{ ('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 %}
| {{ trans('list.source_account') }} | {{ trans('list.destination_account') }} | {{ trans('list.amount') }} |
|---|---|---|
| {% if transaction.source_type == 'Cash account' %} ({{ 'cash'|_ }}) {% else %} {{ transaction.source_name }} {% endif %} | {% if transaction.destination_type == 'Cash account' %} ({{ 'cash'|_ }}) {% else %} {{ transaction.destination_name }} {% endif %} | {{ transaction|transactionArrayAmount }} | {% endif %} {% endfor %}