mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-26 02:54:20 +00:00
68 lines
1.6 KiB
Django/Jinja
68 lines
1.6 KiB
Django/Jinja
{% extends "core/base.jinja" %}
|
|
|
|
{% block title %}
|
|
{% trans %}General journal:{% endtrans %} {{ object.name }}
|
|
{% endblock %}
|
|
|
|
|
|
{% block content %}
|
|
<h3>{% trans %}Statement by person: {% endtrans %} {{ object.name }}</h3>
|
|
|
|
<h4>{% trans %}Credit{% endtrans %}</h4>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<td>{% trans %}Target of the operation{% endtrans %}</td>
|
|
<td>{% trans %}Sum{% endtrans %}</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for key in credit_statement.keys() %}
|
|
<tr>
|
|
{% if key.target_type == "OTHER" %}
|
|
<td>{{ o.target_label }}</td>
|
|
{% elif key %}
|
|
<td><a href="{{ key.get_absolute_url() }}">{{ key.get_display_name() }}</a></td>
|
|
{% else %}
|
|
<td></td>
|
|
{% endif %}
|
|
<td>{{ credit_statement[key] }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<p>Total : {{ total_credit }}</p>
|
|
|
|
<h4>{% trans %}Debit{% endtrans %}</h4>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<td>{% trans %}Target of the operation{% endtrans %}</td>
|
|
<td>{% trans %}Sum{% endtrans %}</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for key in debit_statement.keys() %}
|
|
<tr>
|
|
{% if key.target_type == "OTHER" %}
|
|
<td>{{ o.target_label }}</td>
|
|
{% elif key %}
|
|
<td><a href="{{ key.get_absolute_url() }}">{{ key.get_display_name() }}</a></td>
|
|
{% else %}
|
|
<td></td>
|
|
{% endif %}
|
|
<td>{{ debit_statement[key] }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<p>Total : {{ total_debit }}</p>
|
|
|
|
{% endblock %}
|