Sith/accounting/templates/accounting/journal_details.jinja

76 lines
3.0 KiB
Plaintext
Raw Normal View History

2016-05-03 06:50:54 +00:00
{% extends "core/base.jinja" %}
2016-08-24 17:50:22 +00:00
{% block title %}
{% trans %}General journal:{% endtrans %} {{ object.name }}
{% endblock %}
2016-05-03 06:50:54 +00:00
{% block content %}
2016-07-19 17:03:16 +00:00
<p>
<a href="{{ url('accounting:bank_list') }}">{% trans %}Accounting{% endtrans %}</a> >
<a href="{{ url('accounting:bank_details', b_account_id=object.club_account.bank_account.id) }}">{{object.club_account.bank_account }}</a> >
<a href="{{ url('accounting:club_details', c_account_id=object.club_account.id) }}">{{ object.club_account }}</a> >
{{ object.name }}
</p>
2016-08-24 17:50:22 +00:00
<hr>
<h2>{% trans %}General journal:{% endtrans %} {{ object.name }}</h2>
2016-07-19 17:03:16 +00:00
<p><strong>{% trans %}Amount: {% endtrans %}</strong>{{ object.amount }} € -
<strong>{% trans %}Effective amount: {% endtrans %}</strong>{{ object.effective_amount }} €</p>
2016-06-24 19:55:52 +00:00
{% if object.closed %}
2016-07-19 17:03:16 +00:00
<p>{% trans %}Journal is closed, you can not create operation{% endtrans %}</p>
2016-06-24 19:55:52 +00:00
{% else %}
2016-07-19 17:03:16 +00:00
<p><a href="{{ url('accounting:op_new') }}?parent={{ object.id }}">{% trans %}New operation{% endtrans %}</a></p>
2016-06-24 19:55:52 +00:00
{% endif %}
2016-06-22 11:19:35 +00:00
<table>
<thead>
2016-06-22 11:19:35 +00:00
<tr>
2016-07-19 17:03:16 +00:00
<td>{% trans %}Nb{% endtrans %}</td>
<td>{% trans %}Date{% endtrans %}</td>
2016-10-05 13:54:00 +00:00
<td>{% trans %}Label{% endtrans %}</td>
2016-07-19 17:03:16 +00:00
<td>{% trans %}Amount{% endtrans %}</td>
<td>{% trans %}Payment mode{% endtrans %}</td>
2016-08-07 18:10:50 +00:00
<td>{% trans %}Target{% endtrans %}</td>
2016-07-19 17:03:16 +00:00
<td>{% trans %}Code{% endtrans %}</td>
<td>{% trans %}Nature{% endtrans %}</td>
<td>{% trans %}Done{% endtrans %}</td>
<td>{% trans %}Comment{% endtrans %}</td>
2016-08-10 03:48:06 +00:00
<td>{% trans %}File{% endtrans %}</td>
2016-07-19 17:03:16 +00:00
<td>{% trans %}Actions{% endtrans %}</td>
2016-06-22 11:19:35 +00:00
</tr>
</thead>
<tbody>
2016-07-19 17:03:16 +00:00
{% for o in object.operations.all() %}
2016-06-22 11:19:35 +00:00
<tr>
<td>{{ o.number }}</td>
2016-06-22 11:19:35 +00:00
<td>{{ o.date }}</td>
2016-10-05 13:54:00 +00:00
<td>{{ o.label or "" }}</td>
2016-06-22 11:19:35 +00:00
<td>{{ o.amount }} €</td>
2016-08-07 18:10:50 +00:00
<td>{{ o.get_mode_display() }}</td>
{% if o.target_type == "OTHER" %}
<td>{{ o.target_label }}</td>
{% else %}
<td><a href="{{ o.target.get_absolute_url() }}">{{ o.target.get_display_name() }}</a></td>
{% endif %}
2016-06-22 11:19:35 +00:00
<td>{{ o.accounting_type.code }}</td>
<td>{{ o.accounting_type.label }}</td>
{% if o.done %}
2016-07-19 17:03:16 +00:00
<td>{% trans %}Yes{% endtrans %}</td>
2016-06-22 11:19:35 +00:00
{% else %}
2016-07-19 17:03:16 +00:00
<td>{% trans %}No{% endtrans %}</td>
2016-06-22 11:19:35 +00:00
{% endif %}
<td>{{ o.remark }}</td>
2016-08-10 03:48:06 +00:00
{% if o.invoice %}
<td><a href="{{ url('core:download', file_id=o.invoice.id) }}">{{ o.invoice.name }}</a></td>
2016-08-10 03:48:06 +00:00
{% else %}
<td>-</td>
{% endif %}
2016-06-24 19:55:52 +00:00
<td>
{% if not o.journal.closed %}
2016-07-19 17:03:16 +00:00
<a href="{{ url('accounting:op_edit', op_id=o.id) }}">{% trans %}Edit{% endtrans %}</a>
2016-06-24 19:55:52 +00:00
{% endif %}
</td>
2016-06-22 11:19:35 +00:00
</tr>
2016-07-19 17:03:16 +00:00
{% endfor %}
</tbody>
2016-06-22 11:19:35 +00:00
</table>
2016-05-03 06:50:54 +00:00
{% endblock %}