2016-12-14 17:04:57 +00:00
|
|
|
{% extends "core/base.jinja" %}
|
|
|
|
|
|
|
|
{% block title %}
|
2024-07-23 22:16:31 +00:00
|
|
|
{% trans %}General journal:{% endtrans %} {{ object.name }}
|
2016-12-14 17:04:57 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
2024-07-23 22:16:31 +00:00
|
|
|
<div id="accounting">
|
2017-10-09 11:58:18 +00:00
|
|
|
<h3>{% trans %}Statement by person: {% endtrans %} {{ object.name }}</h3>
|
2016-12-14 17:04:57 +00:00
|
|
|
|
2017-10-09 11:58:18 +00:00
|
|
|
<h4>{% trans %}Credit{% endtrans %}</h4>
|
2016-12-14 17:04:57 +00:00
|
|
|
|
2017-10-09 11:58:18 +00:00
|
|
|
<table>
|
2024-07-23 22:16:31 +00:00
|
|
|
<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>
|
2016-12-21 04:42:33 +00:00
|
|
|
|
2017-10-09 11:58:18 +00:00
|
|
|
</table>
|
2016-12-21 04:42:33 +00:00
|
|
|
|
2019-10-06 15:44:30 +00:00
|
|
|
<p>Total : {{ "%.2f" % total_credit }}</p>
|
2016-12-21 04:42:33 +00:00
|
|
|
|
2017-10-09 11:58:18 +00:00
|
|
|
<h4>{% trans %}Debit{% endtrans %}</h4>
|
2016-12-21 04:42:33 +00:00
|
|
|
|
2017-10-09 11:58:18 +00:00
|
|
|
<table>
|
2024-07-23 22:16:31 +00:00
|
|
|
<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>
|
2016-12-21 04:42:33 +00:00
|
|
|
|
2017-10-09 11:58:18 +00:00
|
|
|
</table>
|
2016-12-14 17:04:57 +00:00
|
|
|
|
2019-10-06 15:44:30 +00:00
|
|
|
<p>Total : {{ "%.2f" % total_debit }}</p>
|
2024-07-23 22:16:31 +00:00
|
|
|
</div>
|
2016-12-21 04:18:02 +00:00
|
|
|
{% endblock %}
|