mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-26 02:54:20 +00:00
74 lines
2.9 KiB
Django/Jinja
74 lines
2.9 KiB
Django/Jinja
{% extends "core/base.jinja" %}
|
|
|
|
{% block title %}
|
|
{% trans %}General journal:{% endtrans %} {{ object.name }}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<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>
|
|
<hr>
|
|
<h2>{% trans %}General journal:{% endtrans %} {{ object.name }}</h2>
|
|
<p><strong>{% trans %}Amount: {% endtrans %}</strong>{{ object.amount }} € -
|
|
<strong>{% trans %}Effective amount: {% endtrans %}</strong>{{ object.effective_amount }} €</p>
|
|
{% if object.closed %}
|
|
<p>{% trans %}Journal is closed, you can not create operation{% endtrans %}</p>
|
|
{% else %}
|
|
<p><a href="{{ url('accounting:op_new') }}?parent={{ object.id }}">{% trans %}New operation{% endtrans %}</a></p>
|
|
{% endif %}
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<td>{% trans %}Nb{% endtrans %}</td>
|
|
<td>{% trans %}Date{% endtrans %}</td>
|
|
<td>{% trans %}Amount{% endtrans %}</td>
|
|
<td>{% trans %}Payment mode{% endtrans %}</td>
|
|
<td>{% trans %}Target{% endtrans %}</td>
|
|
<td>{% trans %}Code{% endtrans %}</td>
|
|
<td>{% trans %}Nature{% endtrans %}</td>
|
|
<td>{% trans %}Done{% endtrans %}</td>
|
|
<td>{% trans %}Comment{% endtrans %}</td>
|
|
<td>{% trans %}File{% endtrans %}</td>
|
|
<td>{% trans %}Actions{% endtrans %}</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for o in object.operations.all() %}
|
|
<tr>
|
|
<td>{{ o.number }}</td>
|
|
<td>{{ o.date }}</td>
|
|
<td>{{ o.amount }} €</td>
|
|
<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 %}
|
|
<td>{{ o.accounting_type.code }}</td>
|
|
<td>{{ o.accounting_type.label }}</td>
|
|
{% if o.done %}
|
|
<td>{% trans %}Yes{% endtrans %}</td>
|
|
{% else %}
|
|
<td>{% trans %}No{% endtrans %}</td>
|
|
{% endif %}
|
|
<td>{{ o.remark }}</td>
|
|
{% if o.invoice %}
|
|
<td><a href="{{ url('core:download', file_id=o.invoice.id) }}">{{ o.invoice.name }}</a></td>
|
|
{% else %}
|
|
<td>-</td>
|
|
{% endif %}
|
|
<td>
|
|
{% if not o.journal.closed %}
|
|
<a href="{{ url('accounting:op_edit', op_id=o.id) }}">{% trans %}Edit{% endtrans %}</a>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endblock %}
|