Rename bilan to statement

This commit is contained in:
Skia
2016-12-21 05:18:02 +01:00
parent bdcc0bf6e9
commit e6e4929eff
5 changed files with 39 additions and 39 deletions

View File

@ -6,7 +6,7 @@
{% block content %}
<h3>{% trans %}Accounting bilan: {% endtrans %} {{ object.name }}</h3>
<h3>{% trans %}Accounting statement: {% endtrans %} {{ object.name }}</h3>
<table>
<thead>
@ -16,7 +16,7 @@
</tr>
</thead>
<tbody>
{% for k,v in bilan.items() %}
{% for k,v in statement.items() %}
<tr>
<td>{{ k }}</td>
<td>{{ v }}</td>

View File

@ -5,7 +5,7 @@
{% endblock %}
{% macro display_tables(dict) %}
<h4>{% trans %}Credit{% endtrans %}</h4>
<h5>{% trans %}Credit{% endtrans %}</h5>
<table>
<thead>
<tr>
@ -24,7 +24,7 @@
</table>
{% trans %}Total: {% endtrans %}{{ dict['CREDIT_sum'] }}
<h4>{% trans %}Debit{% endtrans %}</h4>
<h5>{% trans %}Debit{% endtrans %}</h5>
<table>
<thead>
<tr>
@ -45,10 +45,10 @@
{% endmacro %}
{% block content %}
<h2>{% trans %}Statement by nature: {% endtrans %} {{ object.name }}</h2>
<h3>{% trans %}Statement by nature: {% endtrans %} {{ object.name }}</h3>
{% for k,v in statement.items() %}
<h3>{{ k }}</h3>
<h4>{{ k }}</h4>
{{ display_tables(v) }}
<hr>
{% endfor %}

View File

@ -6,9 +6,9 @@
{% block content %}
<h2>{% trans %}Person bilan: {% endtrans %} {{ object.name }}</h2>
<h3>{% trans %}Statement by person: {% endtrans %} {{ object.name }}</h3>
<h3>{% trans %}Credit{% endtrans %}</h3>
<h4>{% trans %}Credit{% endtrans %}</h4>
<table>
<thead>
@ -18,14 +18,14 @@
</tr>
</thead>
<tbody>
{% for key in bilan_credit.keys() %}
{% for key in credit_statement.keys() %}
<tr>
{% if key.target_type == "OTHER" %}
<td>{{ o.target_label }}</td>
{% else %}
<td><a href="{{ key.get_absolute_url() }}">{{ key.get_display_name() }}</a></td>
{% endif %}
<td>{{bilan_credit[key]}}</td>
<td>{{credit_statement[key]}}</td>
</tr>
{% endfor %}
</tbody>
@ -34,8 +34,8 @@
<p>Total : {{total_credit}}</p>
<h3>{% trans %}Debit{% endtrans %}</h3>
<h4>{% trans %}Debit{% endtrans %}</h4>
<table>
<thead>
<tr>
@ -44,14 +44,14 @@
</tr>
</thead>
<tbody>
{% for key in bilan_debit.keys() %}
{% for key in debit_statement.keys() %}
<tr>
{% if key.target_type == "OTHER" %}
<td>{{ o.target_label }}</td>
{% else %}
<td><a href="{{ key.get_absolute_url() }}">{{ key.get_display_name() }}</a></td>
{% endif %}
<td>{{bilan_debit[key]}}</td>
<td>{{debit_statement[key]}}</td>
</tr>
{% endfor %}
</tbody>
@ -60,4 +60,4 @@
<p>Total : {{total_debit}}</p>
{% endblock %}
{% endblock %}