Sith/accounting/templates/accounting/journal_details.jinja

93 lines
4.3 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-10-05 18:17:37 +00:00
<p><a href="{{ url('accounting:label_new') }}?parent={{ object.club_account.id }}">{% trans %}New label{% endtrans %}</a></p>
<p><a href="{{ url('accounting:label_list', clubaccount_id=object.club_account.id) }}">{% trans %}Label list{% endtrans %}</a></p>
2016-12-19 20:58:40 +00:00
<p><a href="{{ url('accounting:co_list') }}">{% trans %}Company list{% endtrans %}</a></p>
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-10-05 18:17:37 +00:00
<p><a href="{{ url('accounting:op_new', j_id=object.id) }}">{% trans %}New operation{% endtrans %}</a></p>
2016-12-21 02:52:33 +00:00
</br>
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-11-07 00:51:02 +00:00
<td>{% trans %}PDF{% 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 }}
{% if not o.linked_operation and o.target_type == "ACCOUNT" and not o.target.has_open_journal() %}
<p><strong>
{% trans %}Warning: this operation has no linked operation because the targeted club account has no opened journal.{% endtrans %}
</strong></p>
<p><strong>
{% trans url=o.target.get_absolute_url() %}Open a journal in <a href="{{ url }}">this club account</a>, then save this operation again to make the linked operation.{% endtrans %}
</strong></p>
{% endif %}
</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>
2017-03-14 18:09:12 +00:00
{% if o.journal.club_account.bank_account.name != "AE TI" and o.journal.club_account.bank_account.name != "TI" or user.is_in_group(settings.SITH_GROUP_ACCOUNTING_ADMIN_ID) %}
2016-06-24 19:55:52 +00:00
{% 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 %}
2017-02-05 16:26:04 +00:00
{% endif %}
2016-06-24 19:55:52 +00:00
</td>
2016-11-07 00:51:02 +00:00
<td><a href="{{ url('accounting:op_pdf', op_id=o.id) }}">{% trans %}Generate{% endtrans %}</a></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 %}