{% extends "./layout/default.twig" %} {% block breadcrumbs %} {{ Breadcrumbs.renderIfExists }} {% endblock %} {% block content %} {{ Form.open({'class' : 'form-horizontal','id' : 'store','url' : route('split.journal.from-store.post')}) }}

{{ ('split_title_'~data.what)|_ }}

{{ ('split_intro_one_'~data.what)|_ }}

{{ ('split_intro_two_'~data.what)|_ }}

{% if data.what =='deposit' %} {{ trans(('firefly.split_intro_three_'~data.what), {total: 500|formatAmount, split_one: 425|formatAmount, split_two: 75|formatAmount})|raw }} {% else %} {{ trans(('firefly.split_intro_three_'~data.what), {total: 20|formatAmount, split_one: 15|formatAmount, split_two: 5|formatAmount})|raw }} {% endif %}

{{ 'transaction_meta_data'|_ }}

{{ ExpandedForm.text('journal_description', data.description) }} {{ ExpandedForm.select('currency', currencies, data.amount_currency_id_amount) }} {{ ExpandedForm.staticText('amount', data.amount|formatAmount) }} {% if data.what == 'withdrawal' or data.what == 'transfer' %} {{ ExpandedForm.staticText('asset_source_account', assetAccounts[data.source_account_id]) }} {% endif %} {% if data.what == 'deposit' %} {{ ExpandedForm.staticText('revenue_account', data.source_account_name) }} {% endif %} {% if data.what == 'transfer' %} {{ ExpandedForm.staticText('asset_destination_account', assetAccounts[data.destination_account_id]) }} {% endif %}

{{ 'transaction_dates'|_ }}

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

{{ 'splits'|_ }}

{{ ('split_table_intro_'~data.what)|_ }}

{% if data.what == 'withdrawal' or data.what == 'deposit' %} {% endif %} {% if data.what == 'withdrawal' %} {% endif %} {% if data.what == 'transfer' %} {% endif %} {% if data.what == 'withdrawal' %} {% endif %} {% if data.what == 'deposit' %} {% endif %} {% if data.what == 'withdrawal' %} {% endif %}
{{ trans('list.split_number') }} {{ trans('list.description') }} {{ trans('list.destination') }}{{ trans('list.amount') }}{{ trans('list.budget') }}{{ trans('list.category') }}{{ trans('list.piggy_bank') }}
#1 {{ Form.input('text', 'description[]', data.description, {class: 'form-control'}) }} {{ Form.input('text', 'destination_account_name[]', data.destination_account_name, {class: 'form-control'}) }} {{ Form.select('destination_account_id[]', assetAccounts, data.destination_account_id, {class: 'form-control'}) }} {{ Form.input('number', 'amount[]', data.amount, {class: 'form-control', autocomplete: 'off', step: 'any', min:'0.01'}) }} {{ Form.select('budget[]', budgets, data.budget_id, {class: 'form-control'}) }} {{ Form.input('text', 'category[]', data.category, {class: 'form-control'}) }}


{{ 'add_another_split'|_ }}

{% endblock %} {% block scripts %} {% endblock %} {% block styles %} {% endblock %}