Sith/accounting/templates/accounting/journal_statement_person.jinja

69 lines
1.8 KiB
Django/Jinja
Raw Normal View History

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