mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-15 10:43:22 +00:00
69 lines
1.8 KiB
Django/Jinja
69 lines
1.8 KiB
Django/Jinja
{% extends "core/base.jinja" %}
|
|
|
|
{% block title %}
|
|
{% trans %}General journal:{% endtrans %} {{ object.name }}
|
|
{% endblock %}
|
|
|
|
|
|
{% block content %}
|
|
<div id="accounting">
|
|
<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>{{ "%.2f" % credit_statement[key] }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<p>Total : {{ "%.2f" % 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>{{ "%.2f" % debit_statement[key] }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<p>Total : {{ "%.2f" % total_debit }}</p>
|
|
</div>
|
|
{% endblock %}
|