{% extends "./layout/default" %} {% block breadcrumbs %} {{ Breadcrumbs.render(Route.getCurrentRoute.getName, transactionGroup) }} {% endblock %} {% block content %} {#
{% if errors.all|length > 0 %}

{{ 'errors'|_ }}

    {% for err in errors.all %}
  • {{ err }}
  • {% endfor %}
{% endif %}

{{ 'mandatoryFields'|_ }}

{{ ExpandedForm.text('description',journal.description) }} {% if what == 'transfer' or what == 'withdrawal' %} {{ ExpandedForm.longAccountList('source_id', data.source_id, {label: trans('form.asset_source_account')}) }} {% endif %} {% if what == 'deposit' %} {{ ExpandedForm.text('source_name',data.source_name, {label: trans('form.revenue_account')}) }} {% endif %} {% if what == 'withdrawal' %} {{ ExpandedForm.text('destination_name',data.destination_name, {label: trans('form.expense_account')}) }} {% endif %} {% if what == 'transfer' or what == 'deposit' %} {{ ExpandedForm.longAccountList('destination_id', data.destination_id, {label: trans('form.asset_destination_account')} ) }} {% endif %} {{ ExpandedForm.amount('amount',data.amount, {'currency' : data.currency}) }} {{ ExpandedForm.staticText('exchange_rate_instruction','(here be text)') }} {{ ExpandedForm.nonSelectableAmount('native_amount', data.native_amount, {currency: data.native_currency}) }} {{ ExpandedForm.nonSelectableAmount('source_amount', data.source_amount, {currency: data.source_currency }) }} {{ ExpandedForm.nonSelectableAmount('destination_amount', data.destination_amount, {currency: data.destination_currency }) }} {{ ExpandedForm.date('date',data['date']) }}

{{ 'optionalFields'|_ }}

{% if what == 'withdrawal' %} {% if budgetList|length > 1 %} {{ ExpandedForm.select('budget_id', budgetList, data['budget_id']) }} {% else %} {{ ExpandedForm.select('budget_id', budgetList, data['budget_id'], {helpText: trans('firefly.no_budget_pointer', {link: route('budgets.index')})}) }} {% endif %} {% endif %} {{ ExpandedForm.text('category',data['category']) }} {{ ExpandedForm.text('tags') }} {% if data.bill_id != null %} {{ ExpandedForm.checkbox('keep_bill_id',1,true, {'helpText': trans('firefly.journal_link_bill', {name: data.bill_name,route: route('bills.show', [data.bill_id])})} ) }} {% endif %}
{% if not optionalFields.interest_date or not optionalFields.book_date or not optionalFields.process_date or not optionalFields.due_date or not optionalFields.payment_date or not optionalFields.invoice_date or not optionalFields.internal_reference or not optionalFields.notes or not optionalFields.attachments %}

{{ trans('firefly.hidden_fields_preferences', {link: route('preferences.index')})|raw }}

{% endif %} {% if optionalFields.interest_date or optionalFields.book_date or optionalFields.process_date or optionalFields.due_date or optionalFields.payment_date or optionalFields.invoice_date or data.interest_date or data.book_date or data.process_date or data.due_date or data.payment_date %}

{{ 'optional_field_meta_dates'|_ }}

{% if optionalFields.interest_date or data['interest_date'] %} {{ ExpandedForm.date('interest_date',data['interest_date']) }} {% endif %} {% if optionalFields.book_date or data['book_date'] %} {{ ExpandedForm.date('book_date',data['book_date']) }} {% endif %} {% if optionalFields.process_date or data['process_date'] %} {{ ExpandedForm.date('process_date',data['process_date']) }} {% endif %} {% if optionalFields.due_date or data['due_date'] %} {{ ExpandedForm.date('due_date',data['due_date']) }} {% endif %} {% if optionalFields.payment_date or data['payment_date'] %} {{ ExpandedForm.date('payment_date',data['payment_date']) }} {% endif %} {% if optionalFields.invoice_date or data['invoice_date'] %} {{ ExpandedForm.date('invoice_date',data['invoice_date']) }} {% endif %}
{% endif %} {% if optionalFields.internal_reference or optionalFields.notes or data['interal_reference'] or data['notes'] %}

{{ 'optional_field_meta_business'|_ }}

{% if optionalFields.internal_reference or data['interal_reference'] %} {{ ExpandedForm.text('internal_reference', data['interal_reference']) }} {% endif %} {% if optionalFields.notes or data['notes'] %} {{ ExpandedForm.textarea('notes', data['notes'], {helpText: trans('firefly.field_supports_markdown')}) }} {% endif %}
{% endif %} {% if optionalFields.attachments or journal.attachments|length > 0 %}

{{ 'optional_field_attachments'|_ }}

{% if journal.attachments|length > 0 %}
{% for att in journal.attachments %} {% endfor %}
{% endif %} {{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
{% endif %}

{{ 'options'|_ }}

{{ ExpandedForm.optionsList('update','transaction') }}
#} {% endblock %} {% block scripts %} {# #} {% endblock %} {% block styles %} {# #} {% endblock %}