{% extends "./layout/default.twig" %} {% block breadcrumbs %} {{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName, preFilled.what) }} {% endblock %} {% block content %}
{% if errors.all()|length > 0 %}

{{ 'errors'|_ }}

    {% for key, err in errors.all() %}
  • {{ err }}
  • {% endfor %}
{% endif %}

{{ 'transaction_meta_data'|_ }}

{{ ExpandedForm.text('journal_description', journal.description) }} {{ ExpandedForm.select('journal_currency_id', currencies, journal.transaction_currency_id) }} {{ ExpandedForm.staticText('journal_amount', preFilled.journal_amount|formatAmount ) }} {% if preFilled.what == 'withdrawal' or preFilled.what == 'transfer' %} {{ ExpandedForm.select('journal_source_account_id', assetAccounts, preFilled.journal_source_account_id) }} {% endif %} {% if preFilled.what == 'deposit' %} {{ ExpandedForm.select('journal_destination_account_id', assetAccounts, preFilled.journal_destination_account_id) }} {% endif %} {% if preFilled.what == 'transfer' %} {{ ExpandedForm.select('journal_destination_account_id', assetAccounts, preFilled.journal_destination_account_id) }} {% endif %}

{{ 'transaction_dates'|_ }}

{{ ExpandedForm.date('date', journal.date) }} {{ ExpandedForm.date('interest_date', journal.interest_date) }} {{ ExpandedForm.date('book_date', journal.book_date) }} {{ ExpandedForm.date('process_date', journal.process_date) }}

{{ 'splits'|_ }}

{% if preFilled.what == 'withdrawal' %} {% endif %} {% if preFilled.what == 'deposit' %} {% endif %} {% if preFilled.what == 'withdrawal' %} {% endif %} {% if preFilled.what == 'transfer' %} {% endif %} {% for index, descr in preFilled.description %} {% if preFilled.what == 'withdrawal' %} {% endif %} {% if preFilled.what == 'deposit' %} {% endif %} {% if preFilled.what == 'withdrawal' %} {% endif %} {% if preFilled.what == 'transfer' %} {% endif %} {% endfor %}
{{ trans('list.split_number') }} {{ trans('list.description') }} {{ trans('list.destination') }}{{ trans('list.source') }}{{ trans('list.amount') }} {{ trans('list.budget') }}{{ trans('list.category') }}{{ trans('list.piggy_bank') }}
#{{ loop.index }} {{ Form.select('piggy_bank_id[]',piggyBanks, preFilled.piggy_bank_id[index], {class: 'form-control'}) }}


{{ 'add_another_split'|_ }}

{{ 'optionalFields'|_ }}

{{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}

{{ 'options'|_ }}

{{ ExpandedForm.optionsList('create','split-transaction') }}
{% endblock %} {% block scripts %} {% endblock %} {% block styles %} {% endblock %}