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

{{ 'mass_edit_journals'|_ }}

{{ 'cannot_edit_other_fields'|_ }} {{ 'cannot_change_amount_reconciled'|_ }}

{% for journal in journals %} {# AMOUNT #} {# category #} {# budget #} {% endfor %}
  {{ trans('list.description') }} {{ trans('list.amount') }} {{ trans('list.date') }} {{ trans('list.from') }} {{ trans('list.to') }} {{ trans('list.category') }} {{ trans('list.budget') }}
{# LINK TO EDIT FORM #} {# DESCRIPTION #} {% if journal.reconciled == false %}
{{ journal.currency_symbol }}
{% if journal.foreign_amount %} {# insert foreign data #}
{{ journal.foreign_currency_symbol }}
{% endif %} {% endif %} {% if journal.reconciled != false %} {% if journal.transaction_type_type == 'Deposit' %} {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places) }} {% if null != journal.foreign_amount %} ({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }}) {% endif %} {% elseif journal.transaction_type_type == 'Transfer' %} {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places, false) }} {% if null != journal.foreign_amount %} ({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places, false) }}) {% endif %} {% else %} {{ formatAmountBySymbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places) }} {% if null != journal.foreign_amount %} ({{ formatAmountBySymbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }}) {% endif %} {% endif %} {% endif %}
{# DATE #} {# SOURCE ACCOUNT ID FOR TRANSFER OR WITHDRAWAL #} {% if journal.transaction_type_type == 'Transfer' or journal.transaction_type_type == 'Withdrawal' %} {% endif %} {# SOURCE ACCOUNT NAME FOR DEPOSIT #} {% if journal.transaction_type_type == 'Deposit' %} {% endif %} {# DESTINATION ACCOUNT NAME FOR TRANSFER AND DEPOSIT #} {% if journal.transaction_type_type == 'Transfer' or journal.transaction_type_type == 'Deposit' %} {% endif %} {# DESTINATION ACCOUNT NAME FOR WITHDRAWAL #} {% if journal.transaction_type_type == 'Withdrawal' %} {% endif %} {% if journal.transaction_type_type == 'Withdrawal' %} {% endif %}
{% endblock %} {% block scripts %} {% endblock %}