2016-11-06 08:11:43 +01:00
|
|
|
{% extends "./layout/default" %}
|
2016-05-12 12:13:10 +02:00
|
|
|
|
|
|
|
|
{% block breadcrumbs %}
|
2017-12-23 20:46:52 +01:00
|
|
|
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, journal) }}
|
2016-05-12 12:13:10 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
{% block content %}
|
2016-12-06 08:59:08 +01:00
|
|
|
<form method="POST" action="{{ route('transactions.split.update',journal.id) }}" accept-charset="UTF-8" class="form-horizontal" id="update"
|
2016-05-13 09:55:06 +02:00
|
|
|
enctype="multipart/form-data">
|
2016-08-27 03:50:35 +02:00
|
|
|
<input name="_token" type="hidden" value="{{ csrf_token() }}">
|
|
|
|
|
<input type="hidden" name="id" value="{{ journal.id }}"/>
|
|
|
|
|
<input type="hidden" name="what" value="{{ preFilled.what }}"/>
|
2017-09-09 06:25:20 +02:00
|
|
|
<input type="hidden" name="journal_currency_id" value="{{ journal.transaction_currency_id }}"/>
|
2016-08-27 03:50:35 +02:00
|
|
|
|
|
|
|
|
{% if errors.all()|length > 0 %}
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
|
|
|
<div class="box box-danger">
|
|
|
|
|
<div class="box-header with-border">
|
|
|
|
|
<h3 class="box-title">{{ 'errors'|_ }}</h3>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="box-body">
|
|
|
|
|
<ul>
|
|
|
|
|
{% for key, err in errors.all() %}
|
|
|
|
|
<li class="text-danger">{{ err }}</li>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
2016-05-12 12:13:10 +02:00
|
|
|
<div class="row">
|
2017-07-02 09:22:56 +02:00
|
|
|
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
2016-08-27 03:50:35 +02:00
|
|
|
<div class="box">
|
2016-05-12 12:13:10 +02:00
|
|
|
<div class="box-header with-border">
|
2016-09-04 16:21:51 +02:00
|
|
|
<h3 class="box-title">{{ 'transaction_data'|_ }}</h3>
|
2016-05-12 12:13:10 +02:00
|
|
|
</div>
|
|
|
|
|
<div class="box-body">
|
2016-10-21 21:41:31 +02:00
|
|
|
|
|
|
|
|
{# DESCRIPTION IS ALWAYS AVAILABLE #}
|
2016-08-27 03:50:35 +02:00
|
|
|
{{ ExpandedForm.text('journal_description', journal.description) }}
|
2016-10-21 21:41:31 +02:00
|
|
|
|
|
|
|
|
{# show source if withdrawal or transfer #}
|
2016-08-27 03:50:35 +02:00
|
|
|
{% if preFilled.what == 'withdrawal' or preFilled.what == 'transfer' %}
|
2018-08-25 22:10:10 +02:00
|
|
|
{{ ExpandedForm.activeLongAccountList('journal_source_id', preFilled.journal_source_id) }}
|
2016-08-27 03:50:35 +02:00
|
|
|
{% endif %}
|
|
|
|
|
|
2016-10-21 21:41:31 +02:00
|
|
|
{# show destination account id, if deposit (is asset): #}
|
2018-03-07 10:18:22 +01:00
|
|
|
{% if preFilled.what == 'deposit' or preFilled.what == 'transfer' %}
|
2018-08-25 22:10:10 +02:00
|
|
|
{{ ExpandedForm.activeLongAccountList('journal_destination_id', preFilled.journal_destination_id) }}
|
2016-08-27 03:50:35 +02:00
|
|
|
{% endif %}
|
2016-10-21 21:41:31 +02:00
|
|
|
|
2018-04-22 09:16:51 +02:00
|
|
|
{# show amount and some helper text when making splits: #}
|
|
|
|
|
{# amount #}
|
|
|
|
|
<div id="journal_amount_holder" class="form-group">
|
|
|
|
|
<label for="ffInput_journal_amount" class="col-sm-4 control-label">{{ trans('form.amount') }}</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<p id="ffInput_journal_amount" class="form-control-static">
|
2018-12-21 06:51:21 +01:00
|
|
|
{{ formatAmountBySymbol(preFilled.journal_amount|default("0"), preFilled.transactions[0].currency_symbol|default("x"), preFilled.transactions[0].currency_decimal_places) }}
|
2018-04-22 09:16:51 +02:00
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-10-21 21:41:31 +02:00
|
|
|
|
2018-04-22 09:16:51 +02:00
|
|
|
{# foreign amount, if not zero. #}
|
|
|
|
|
{% if preFilled.journal_foreign_amount != 0 %}
|
|
|
|
|
<div id="journal_foreign_amount_holder" class="form-group">
|
|
|
|
|
<label for="ffInput_foreign_journal_amount" class="col-sm-4 control-label">{{ trans('form.foreign_amount') }}</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<p id="ffInput_foreign_journal_amount" class="form-control-static">
|
2018-12-21 06:51:21 +01:00
|
|
|
{{ formatAmountBySymbol(preFilled.journal_foreign_amount, preFilled.transactions[0].foreign_currency_symbol, preFilled.transactions[0].foreign_currency_decimal_places) }}
|
2018-04-22 09:16:51 +02:00
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
<input type="hidden" name="journal_amount" value="{{ preFilled.journal_amount }}"/>
|
2016-10-21 21:41:31 +02:00
|
|
|
{# DATE #}
|
|
|
|
|
{{ ExpandedForm.date('date', journal.date) }}
|
2016-05-12 12:13:10 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2017-07-02 09:22:56 +02:00
|
|
|
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
2016-08-27 03:50:35 +02:00
|
|
|
<div class="box">
|
|
|
|
|
<div class="box-header with-border">
|
2016-10-21 21:41:31 +02:00
|
|
|
<h3 class="box-title">{{ 'optional_field_meta_data'|_ }}</h3>
|
2016-08-27 03:50:35 +02:00
|
|
|
</div>
|
|
|
|
|
<div class="box-body">
|
2016-10-21 21:41:31 +02:00
|
|
|
{# ALWAYS TAGS #}
|
|
|
|
|
{{ ExpandedForm.text('tags', preFilled.tags) }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-09-04 16:21:51 +02:00
|
|
|
|
2016-10-21 21:41:31 +02:00
|
|
|
{# EXPLANATION IF NECESSARY: #}
|
|
|
|
|
{% if
|
2017-12-29 09:05:35 +01:00
|
|
|
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 %}
|
2017-08-20 12:43:31 +02:00
|
|
|
<p class="text-center text-success"><i class="fa fa-info-circle"></i>
|
2016-12-05 21:58:23 +01:00
|
|
|
<em>{{ trans('firefly.hidden_fields_preferences', {link: route('preferences.index')})|raw }}</em></p>
|
2016-10-21 21:41:31 +02:00
|
|
|
{% endif %}
|
2016-09-04 16:21:51 +02:00
|
|
|
|
2016-10-21 21:41:31 +02:00
|
|
|
{# BOX FOR DATES #}
|
|
|
|
|
{% if
|
2017-12-29 09:05:35 +01:00
|
|
|
optionalFields.interest_date or optionalFields.book_date or optionalFields.process_date
|
|
|
|
|
or optionalFields.due_date or optionalFields.payment_date
|
|
|
|
|
or optionalFields.invoice_date %}
|
2016-10-21 21:41:31 +02:00
|
|
|
<div class="box">
|
|
|
|
|
<div class="box-header with-border">
|
|
|
|
|
<h3 class="box-title">{{ 'optional_field_meta_dates'|_ }}</h3>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="box-body">
|
2016-05-12 12:13:10 +02:00
|
|
|
|
2016-10-21 21:41:31 +02:00
|
|
|
{# INTEREST DATE #}
|
|
|
|
|
{% if optionalFields.interest_date or journal.interest_date %}
|
|
|
|
|
{{ ExpandedForm.date('interest_date', journal.interest_date) }}
|
|
|
|
|
{% endif %}
|
2016-09-04 16:21:51 +02:00
|
|
|
|
2016-10-21 21:41:31 +02:00
|
|
|
{# BOOK DATE #}
|
|
|
|
|
{% if optionalFields.book_date or journal.book_date %}
|
|
|
|
|
{{ ExpandedForm.date('book_date', journal.book_date) }}
|
|
|
|
|
{% endif %}
|
2016-05-12 12:13:10 +02:00
|
|
|
|
2016-10-21 21:41:31 +02:00
|
|
|
{# PROCESSING DATE #}
|
|
|
|
|
{% if optionalFields.process_date or journal.process_date %}
|
|
|
|
|
{{ ExpandedForm.date('process_date', journal.process_date) }}
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{# DUE DATE #}
|
|
|
|
|
{% if optionalFields.due_date or journal.due_date %}
|
|
|
|
|
{{ ExpandedForm.date('due_date', journal.due_date) }}
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{# PAYMENT DATE #}
|
|
|
|
|
{% if optionalFields.payment_date or journal.payment_date %}
|
|
|
|
|
{{ ExpandedForm.date('payment_date', journal.payment_date) }}
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{# INVOICE DATE #}
|
|
|
|
|
{% if optionalFields.invoice_date or journal.invoice_date %}
|
|
|
|
|
{{ ExpandedForm.date('invoice_date', journal.invoice_date) }}
|
|
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
2016-08-27 03:50:35 +02:00
|
|
|
</div>
|
2016-10-21 21:41:31 +02:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{# BOX FOR BUSINESS FIELDS #}
|
|
|
|
|
{% if optionalFields.internal_reference or optionalFields.notes %}
|
|
|
|
|
<div class="box">
|
|
|
|
|
<div class="box-header with-border">
|
|
|
|
|
<h3 class="box-title">{{ 'optional_field_meta_business'|_ }}</h3>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="box-body">
|
|
|
|
|
|
|
|
|
|
{# INTERNAL REFERENCE #}
|
|
|
|
|
{% if optionalFields.internal_reference or journal.internal_reference %}
|
|
|
|
|
{{ ExpandedForm.text('internal_reference', journal.internal_reference) }}
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{# NOTES #}
|
|
|
|
|
{% if optionalFields.notes or journal.notes %}
|
2017-10-20 07:55:04 +02:00
|
|
|
{{ ExpandedForm.textarea('notes',preFilled.notes) }}
|
2016-10-21 21:41:31 +02:00
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{# BOX FOR ATTACHMENTS #}
|
|
|
|
|
{% if optionalFields.attachments %}
|
|
|
|
|
<div class="box">
|
|
|
|
|
<div class="box-header with-border">
|
|
|
|
|
<h3 class="box-title">{{ 'optional_field_attachments'|_ }}</h3>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="box-body">
|
|
|
|
|
{# ATTACHMENTS #}
|
|
|
|
|
{% if optionalFields.attachments %}
|
|
|
|
|
{{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
|
|
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
2016-05-13 07:33:04 +02:00
|
|
|
|
2016-08-27 03:50:35 +02:00
|
|
|
</div>
|
2016-05-12 12:13:10 +02:00
|
|
|
</div>
|
2016-08-27 03:50:35 +02:00
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
|
|
|
<div class="box">
|
|
|
|
|
<div class="box-header with-border">
|
|
|
|
|
<h3 class="box-title">{{ 'splits'|_ }}</h3>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="box-body">
|
2017-07-02 09:22:56 +02:00
|
|
|
<div class="container-fluid split_row_holder">
|
|
|
|
|
<div class="row bg-gray-light" style="padding-bottom:3px;">
|
2018-04-22 08:08:09 +02:00
|
|
|
{# HEADER #}
|
2017-07-02 09:22:56 +02:00
|
|
|
<div class="col-lg-1 col-md-1 col-sm-6 col-xs-6"><strong>{{ trans('list.split_number') }}</strong></div>
|
|
|
|
|
<div class="col-lg-3 col-md-5 col-sm-12 col-xs-12"><strong>{{ trans('list.description') }}</strong></div>
|
2016-10-21 21:41:31 +02:00
|
|
|
{# withdrawal and deposit have a destination. #}
|
2016-05-12 22:44:31 +02:00
|
|
|
{% if preFilled.what == 'withdrawal' %}
|
2017-07-02 09:22:56 +02:00
|
|
|
<div class="col-lg-2 col-md-5 col-sm-12 col-xs-12"><strong>{{ trans('list.destination') }}</strong></div>
|
2016-05-12 12:13:10 +02:00
|
|
|
{% endif %}
|
2017-07-02 09:22:56 +02:00
|
|
|
{# Deposit has a source #}
|
2016-05-12 22:44:31 +02:00
|
|
|
{% if preFilled.what == 'deposit' %}
|
2017-07-02 09:22:56 +02:00
|
|
|
<div class="col-lg-2 col-md-5 col-sm-12 col-xs-12"><strong>{{ trans('list.source') }}</strong></div>
|
|
|
|
|
{% endif %}
|
2018-04-22 08:08:09 +02:00
|
|
|
<div class="col-lg-2 col-md-5 col-sm-12 col-xs-12"><strong>{{ trans('list.amount') }}</strong></div>
|
2016-10-21 21:41:31 +02:00
|
|
|
{# only withdrawal has budget #}
|
2016-05-12 22:44:31 +02:00
|
|
|
{% if preFilled.what == 'withdrawal' %}
|
2018-04-22 08:08:09 +02:00
|
|
|
<div class="col-lg-2 col-md-6 col-sm-12 col-xs-12"><strong>{{ trans('list.budget') }}</strong></div>
|
2017-07-02 09:22:56 +02:00
|
|
|
{% endif %}
|
|
|
|
|
<div class="col-lg-2 col-md-6 col-sm-12 col-xs-12"><strong>{{ trans('list.category') }}</strong></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2018-04-22 08:08:09 +02:00
|
|
|
{# ROWS #}
|
|
|
|
|
|
|
|
|
|
|
2017-08-10 19:55:13 +02:00
|
|
|
{% for index, transaction in preFilled.transactions %}
|
2018-04-22 09:16:51 +02:00
|
|
|
<div class="row {% if loop.index0 % 2 == 1 %}bg-gray-light{% endif %} split_row" data-split="{{ loop.index0 }}">
|
|
|
|
|
{# button #}
|
|
|
|
|
<div class="col-lg-1 col-md-1 col-sm-6 col-xs-6">
|
|
|
|
|
<a href="#" class="btn btn-xs btn-danger remove-current-split" data-split="{{ loop.index0 }}">
|
|
|
|
|
<i class="fa fa-trash" data-split="{{ loop.index0 }}"></i><span> #{{ loop.index }}</span></a>
|
2017-12-29 09:05:35 +01:00
|
|
|
</div>
|
2017-07-02 09:22:56 +02:00
|
|
|
|
2018-04-22 09:16:51 +02:00
|
|
|
{# description #}
|
|
|
|
|
<div class="col-lg-3 col-md-5 col-sm-12 col-xs-12">
|
|
|
|
|
<input autocomplete="off" type="text" name="transactions[{{ loop.index0 }}][transaction_description]"
|
|
|
|
|
value="{{ transaction.transaction_description }}"
|
|
|
|
|
class="form-control"/>
|
2017-12-29 09:05:35 +01:00
|
|
|
</div>
|
2017-07-02 09:22:56 +02:00
|
|
|
|
2018-04-22 09:16:51 +02:00
|
|
|
{# destination for withdrawals: #}
|
|
|
|
|
{% if preFilled.what == 'withdrawal' %}
|
|
|
|
|
<div class="col-lg-2 col-md-5 col-sm-12 col-xs-12">
|
|
|
|
|
<input autocomplete="off" type="text" name="transactions[{{ loop.index0 }}][destination_name]"
|
|
|
|
|
value="{% if transaction.destination_type != 'Cash account' %}{{ transaction.destination_name }}{% endif %}"
|
|
|
|
|
class="form-control"/>
|
|
|
|
|
</div>
|
2017-08-19 21:59:13 +02:00
|
|
|
{% endif %}
|
2018-04-22 08:08:09 +02:00
|
|
|
|
2018-04-22 09:16:51 +02:00
|
|
|
{# source for deposits #}
|
|
|
|
|
{% if preFilled.what == 'deposit' %}
|
|
|
|
|
<div class="col-lg-2 col-md-5 col-sm-12 col-xs-12">
|
|
|
|
|
<input autocomplete="off" type="text" name="transactions[{{ loop.index0 }}][source_name]"
|
|
|
|
|
value="{{ transaction.source_name }}" class="form-control"/>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
2017-07-02 09:22:56 +02:00
|
|
|
|
2018-04-22 09:16:51 +02:00
|
|
|
{# amount#}
|
|
|
|
|
<div class="col-lg-2 col-md-5 col-sm-12 col-xs-12">
|
|
|
|
|
{{ transaction.currency_symbol }} <input class="split_amount_input" type="number"
|
|
|
|
|
name="transactions[{{ loop.index0 }}][amount]"
|
|
|
|
|
value="{{ transaction.amount }}"
|
|
|
|
|
autocomplete="off" step="any">
|
|
|
|
|
{% if transaction.foreign_amount != null %}
|
|
|
|
|
{{ transaction.foreign_currency_symbol }} <input class="split_amount_input" type="number"
|
|
|
|
|
name="transactions[{{ loop.index0 }}][foreign_amount]"
|
|
|
|
|
value="{{ transaction.foreign_amount }}" autocomplete="off"
|
|
|
|
|
step="any">
|
|
|
|
|
<input type="hidden" name="transactions[{{ loop.index0 }}][foreign_currency_id]"
|
|
|
|
|
value="{{ transaction.foreign_currency_id }}">
|
|
|
|
|
{% endif %}
|
2018-12-23 07:34:51 +01:00
|
|
|
<input type="hidden" name="transactions[{{ loop.index0 }}][currency_id]"
|
2018-08-18 20:13:52 +02:00
|
|
|
value="{{ transaction.currency_id }}">
|
2018-04-22 09:16:51 +02:00
|
|
|
</div>
|
|
|
|
|
{# budget #}
|
|
|
|
|
{% if preFilled.what == 'withdrawal' %}
|
|
|
|
|
<div class="col-lg-2 col-md-6 col-sm-12 col-xs-12">
|
|
|
|
|
<select class="form-control" name="transactions[{{ loop.index0 }}][budget_id]">
|
|
|
|
|
{% for key, budget in budgets %}
|
|
|
|
|
<option label="{{ budget }}" value="{{ key }}"
|
|
|
|
|
{% if transaction.budget_id == key %} selected="selected"{% endif %}>{{ budget }}</option>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</select>
|
2017-08-10 19:55:13 +02:00
|
|
|
</div>
|
2018-04-22 09:16:51 +02:00
|
|
|
{% endif %}
|
2017-08-10 19:55:13 +02:00
|
|
|
|
2018-04-22 09:16:51 +02:00
|
|
|
{# category #}
|
|
|
|
|
<div class="col-lg-2 col-md-6 col-sm-12 col-xs-12">
|
|
|
|
|
<input autocomplete="off" type="text" name="transactions[{{ loop.index0 }}][category_name]"
|
|
|
|
|
value="{{ transaction.category_name }}"
|
|
|
|
|
class="form-control"/>
|
2017-08-10 19:55:13 +02:00
|
|
|
</div>
|
2017-07-02 09:22:56 +02:00
|
|
|
</div>
|
2018-04-22 09:16:51 +02:00
|
|
|
{% endfor %}
|
2017-07-02 09:22:56 +02:00
|
|
|
</div>
|
2018-04-22 09:16:51 +02:00
|
|
|
<p>
|
|
|
|
|
<br/>
|
|
|
|
|
<a href="#" class="btn btn-default btn-do-split"><i class="fa fa-plus-circle"></i> {{ 'add_another_split'|_ }}</a>
|
|
|
|
|
</p>
|
2016-08-27 03:50:35 +02:00
|
|
|
</div>
|
2016-05-13 07:33:04 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-04-22 08:08:09 +02:00
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
|
|
|
|
{# panel for options #}
|
|
|
|
|
<div class="box">
|
|
|
|
|
<div class="box-header with-border">
|
|
|
|
|
<h3 class="box-title">{{ 'options'|_ }}</h3>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="box-body">
|
|
|
|
|
{{ ExpandedForm.optionsList('update','split-transaction') }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="box-footer">
|
|
|
|
|
<button type="submit" class="pull-right btn btn-success">{{ ('update_' ~ preFilled.what)|_ }}</button>
|
2016-08-27 03:50:35 +02:00
|
|
|
</div>
|
2016-05-12 12:13:10 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-04-22 08:08:09 +02:00
|
|
|
</div>
|
2016-05-12 12:13:10 +02:00
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|
2016-10-21 21:41:31 +02:00
|
|
|
{% block styles %}
|
2018-11-02 19:59:29 +01:00
|
|
|
<link href="v1/css/bootstrap-tagsinput.css?v={{ FF_VERSION }}" type="text/css" rel="stylesheet" media="all">
|
|
|
|
|
<link href="v1/css/jquery-ui/jquery-ui.structure.min.css?v={{ FF_VERSION }}" type="text/css" rel="stylesheet" media="all">
|
|
|
|
|
<link href="v1/css/jquery-ui/jquery-ui.theme.min.css?v={{ FF_VERSION }}" type="text/css" rel="stylesheet" media="all">
|
2016-10-21 21:41:31 +02:00
|
|
|
{% endblock %}
|
2016-05-12 12:13:10 +02:00
|
|
|
{% block scripts %}
|
2017-09-12 19:59:07 +02:00
|
|
|
<script type="text/javascript" src="{{ route('javascript.currencies') }}?ext=.js&v={{ FF_VERSION }}"></script>
|
2016-05-12 12:13:10 +02:00
|
|
|
<script type="text/javascript">
|
2018-04-22 09:16:51 +02:00
|
|
|
var currencySymbol = "{{ preFilled.transactions[0].currency_symbol }}";
|
|
|
|
|
var foreignCurrencySymbol = "{{ preFilled.transactions[0].foreign_currency_symbol }}";
|
2016-05-12 22:44:31 +02:00
|
|
|
var originalSum = {{ preFilled.journal_amount }};
|
2018-04-22 09:16:51 +02:00
|
|
|
var originalForeignSum = {{ preFilled.journal_foreign_amount }};
|
2016-05-12 22:44:31 +02:00
|
|
|
var what = "{{ preFilled.what }}";
|
2016-05-12 12:13:10 +02:00
|
|
|
</script>
|
2018-11-02 19:59:29 +01:00
|
|
|
<script type="text/javascript" src="v1/js/lib/typeahead/typeahead.bundle.min.js?v={{ FF_VERSION }}"></script>
|
|
|
|
|
<script type="text/javascript" src="v1/js/ff/common/autocomplete.js?v={{ FF_VERSION }}"></script>
|
|
|
|
|
<script type="text/javascript" src="v1/js/lib/bootstrap-tagsinput.min.js?v={{ FF_VERSION }}"></script>
|
|
|
|
|
<script type="text/javascript" src="v1/js/lib/jquery-ui.min.js?v={{ FF_VERSION }}"></script>
|
|
|
|
|
<script type="text/javascript" src="v1/js/lib/modernizr-custom.js?v={{ FF_VERSION }}"></script>
|
|
|
|
|
<script type="text/javascript" src="v1/js/ff/transactions/split/edit.js?v={{ FF_VERSION }}"></script>
|
2016-05-12 12:13:10 +02:00
|
|
|
{% endblock %}
|