Sith/accounting/templates/accounting/club_account_details.jinja

61 lines
2.4 KiB
Plaintext
Raw Normal View History

2016-04-20 01:01:14 +00:00
{% extends "core/base.jinja" %}
2016-08-24 17:50:22 +00:00
{% block title %}
{% trans %}Club account:{% endtrans %} {{ object.name }}
{% endblock %}
2016-04-20 01:01:14 +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.bank_account.id) }}">{{object.bank_account }}</a> >
{{ object }}
2016-08-24 17:50:22 +00:00
</p>
<hr>
2016-07-21 10:09:57 +00:00
<h2>{% trans %}Club account:{% endtrans %} {{ object.name }}</h2>
2016-08-24 19:49:46 +00:00
{% if user.is_root and not object.journals.exists() %}
<a href="{{ url('accounting:club_delete', c_account_id=object.id) }}">{% trans %}Delete{% endtrans %}</a>
{% endif %}
2016-10-05 13:54:00 +00:00
<p><a href="{{ url('accounting:label_new') }}?parent={{ object.id }}">{% trans %}New label{% endtrans %}</a></p>
<p><a href="{{ url('accounting:label_list', clubaccount_id=object.id) }}">{% trans %}Label list{% endtrans %}</a></p>
2016-06-24 19:55:52 +00:00
{% if not object.has_open_journal() %}
2016-07-19 17:03:16 +00:00
<p><a href="{{ url('accounting:journal_new') }}?parent={{ object.id }}">{% trans %}New journal{% endtrans %}</a></p>
2016-06-24 19:55:52 +00:00
{% else %}
2016-07-19 17:03:16 +00:00
<p>{% trans %}You can not create new journal while you still have one opened{% endtrans %}</p>
2016-06-24 19:55:52 +00:00
{% endif %}
<table>
<thead>
2016-06-24 19:55:52 +00:00
<tr>
2016-07-19 17:03:16 +00:00
<td>{% trans %}Name{% endtrans %}</td>
<td>{% trans %}Start{% endtrans %}</td>
<td>{% trans %}End{% endtrans %}</td>
<td>{% trans %}Amount{% endtrans %}</td>
<td>{% trans %}Effective amount{% endtrans %}</td>
<td>{% trans %}Closed{% endtrans %}</td>
<td>{% trans %}Actions{% endtrans %}</td>
2016-06-24 19:55:52 +00:00
</tr>
</thead>
<tbody>
2016-07-19 17:03:16 +00:00
{% for j in object.journals.all() %}
<tr>
<td>{{ j.name }}</td>
<td>{{ j.start_date }}</td>
{% if j.end_date %}
2016-06-24 19:55:52 +00:00
<td>{{ j.end_date }}</td>
2016-07-19 17:03:16 +00:00
{% else %}
2016-06-24 19:55:52 +00:00
<td> - </td>
2016-07-19 17:03:16 +00:00
{% endif %}
<td>{{ j.amount }} €</td>
<td>{{ j.effective_amount }} €</td>
{% if j.closed %}
<td>{% trans %}Yes{% endtrans %}</td>
{% else %}
<td>{% trans %}No{% endtrans %}</td>
{% endif %}
<td> <a href="{{ url('accounting:journal_details', j_id=j.id) }}">{% trans %}View{% endtrans %}</a>
<a href="{{ url('accounting:journal_edit', j_id=j.id) }}">{% trans %}Edit{% endtrans %}</a> </td>
</tr>
{% endfor %}
</tbody>
2016-06-24 19:55:52 +00:00
</table>
2016-04-20 01:01:14 +00:00
{% endblock %}