Files
firefly-iii/resources/views/v1/accounts/reconcile/overview.twig

108 lines
5.0 KiB
Twig
Raw Normal View History

2017-11-22 16:54:49 +01:00
<div class="modal-dialog modal-lg">
2017-11-15 06:29:49 +01:00
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span>&times;</span><span class="sr-only">{{ 'close'|_ }}</span>
</button>
2018-07-31 05:27:33 +02:00
<h4 class="modal-title">
{{ 'overview_of_reconcile_modal'|_ }}
2017-11-15 06:29:49 +01:00
</h4>
</div>
2017-11-22 16:54:49 +01:00
<form style="display: inline;" class="form-horizontal" id="income" action="{{ route }}" method="POST">
2017-11-15 06:29:49 +01:00
<div class="modal-body">
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
<input type="hidden" name="start" value="{{ start.format('Y-m-d') }}"/>
<input type="hidden" name="end" value="{{ end.format('Y-m-d') }}"/>
2017-11-22 16:54:49 +01:00
<input type="hidden" name="startBalance" value="{{ startBalance }}"/>
<input type="hidden" name="endBalance" value="{{ endBalance }}"/>
{% for id in transactionIds %}
2017-12-29 09:05:35 +01:00
<input type="hidden" name="transactions[]" value="{{ id }}"/>
2017-11-22 16:54:49 +01:00
{% endfor %}
2017-11-15 06:29:49 +01:00
2017-11-22 16:54:49 +01:00
<table class="table table-striped table-bordered">
<tr>
2018-07-31 05:27:33 +02:00
<td>{{ 'submitted_start_balance'|_ }} ({{ start.formatLocalized(monthAndDayFormat) }})</td>
2017-11-22 18:03:32 +01:00
<td>{{ formatAmountByAccount(account, startBalance) }}</td>
2017-11-22 16:54:49 +01:00
</tr>
<tr>
<td>{{ trans('firefly.selected_transactions', {count: transactionIds|length}) }}</td>
2017-11-22 18:03:32 +01:00
<td>{{ formatAmountByAccount(account, amount) }}</td>
2017-11-22 16:54:49 +01:00
</tr>
<tr>
2017-11-22 20:20:44 +01:00
<td>{{ trans('firefly.already_cleared_transactions', {count: countCleared}) }}</td>
2017-11-22 18:03:32 +01:00
<td>{{ formatAmountByAccount(account, clearedAmount) }}</td>
2017-11-22 16:54:49 +01:00
</tr>
<tr>
2018-07-31 05:27:33 +02:00
<td>{{ 'submitted_end_balance'|_ }} ({{ end.formatLocalized(monthAndDayFormat) }})</td>
2017-12-29 09:05:35 +01:00
<td>{{ formatAmountByAccount(account, endBalance) }}</td>
2017-11-22 16:54:49 +01:00
</tr>
2019-06-22 13:09:11 +02:00
<tr>
<td>{{ 'sum_of_reconciliation'|_ }}</td>
<td>{{ formatAmountByAccount(account, reconSum) }}</td>
</tr>
2017-11-22 17:49:06 +01:00
2017-11-22 16:54:49 +01:00
<tr>
<td>{{ 'difference'|_ }}</td>
2017-11-22 17:49:06 +01:00
<td>
2017-11-22 18:03:32 +01:00
{{ formatAmountByAccount(account, difference) }}
2017-12-29 09:05:35 +01:00
<input type="hidden" name="difference" value="{{ difference }}"/>
2017-11-22 17:49:06 +01:00
</td>
2017-11-22 16:54:49 +01:00
</tr>
</table>
<p>
2017-11-22 17:49:06 +01:00
{% if diffCompare > 0 %}
2017-11-22 16:54:49 +01:00
{{ 'reconcile_has_more'|_ }}
{% endif %}
2017-11-22 17:49:06 +01:00
{% if diffCompare < 0 %}
2017-11-22 16:54:49 +01:00
{{ 'reconcile_has_less'|_ }}
{% endif %}
</p>
2017-11-22 17:49:06 +01:00
{% if diffCompare == 0 %}
2017-11-22 16:54:49 +01:00
<p>
{{ 'reconcile_is_equal'|_ }}
</p>
<input type="hidden" name="reconcile" value="nothing">
{% endif %}
2017-11-22 17:49:06 +01:00
{% if diffCompare != 0 %}
2017-12-29 09:05:35 +01:00
<div class="form-group">
<div class="col-lg-12">
<div class="radio">
<label>
2017-11-15 06:29:49 +01:00
2017-12-29 09:05:35 +01:00
<input type="radio" name="reconcile" value="create">
{% if diffCompare > 0 %}
{{ trans('firefly.create_neg_reconcile_transaction', {amount: formatAmountByAccount(account, (difference*-1))})|raw }}
{% endif %}
{% if diffCompare < 0 %}
{{ trans('firefly.create_pos_reconcile_transaction', {amount: formatAmountByAccount(account, (difference*-1))})|raw }}
{% endif %}
</label>
</div>
2017-11-22 16:54:49 +01:00
</div>
</div>
2017-11-15 06:29:49 +01:00
2017-12-29 09:05:35 +01:00
<div class="form-group">
<div class="col-lg-12">
<div class="radio">
<label>
<input type="radio" checked name="reconcile" value="nothing"> {{ 'reconcile_do_nothing'|_ }}
</label>
</div>
2017-11-22 16:54:49 +01:00
</div>
</div>
2017-12-29 09:05:35 +01:00
<p>
{{ 'reconcile_go_back'|_ }}
</p>
2017-11-22 16:54:49 +01:00
{% endif %}
2017-11-15 06:29:49 +01:00
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{{ 'close'|_ }}</button>
2017-11-22 16:54:49 +01:00
<button type="submit" class="btn btn-primary">{{ 'confirm_reconciliation'|_ }}</button>
2017-11-15 06:29:49 +01:00
</div>
</form>
</div>
</div>