2016-12-14 17:04:57 +00:00
|
|
|
{% extends "core/base.jinja" %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
{% trans %}General journal:{% endtrans %} {{ object.name }}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
2017-10-09 11:58:18 +00:00
|
|
|
<div id="accounting">
|
|
|
|
<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>
|
|
|
|
<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 %}
|
2019-10-06 15:44:30 +00:00
|
|
|
<td>{{ "%.2f" % credit_statement[key] }}</td>
|
2017-10-09 11:58:18 +00:00
|
|
|
</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>
|
|
|
|
<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 %}
|
2019-10-06 15:44:30 +00:00
|
|
|
<td>{{ "%.2f" % debit_statement[key] }}</td>
|
2017-10-09 11:58:18 +00:00
|
|
|
</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>
|
2017-10-09 11:58:18 +00:00
|
|
|
</div>
|
2016-12-21 04:18:02 +00:00
|
|
|
{% endblock %}
|