journal_statement_person.jinja 1.63 KB
Newer Older
1
2
3
4
5
6
7
8
{% extends "core/base.jinja" %}

{% block title %}
{% trans %}General journal:{% endtrans %} {{ object.name }}
{% endblock %}


{% block content %}
9
<h3>{% trans %}Statement by person: {% endtrans %} {{ object.name }}</h3>
10

11
<h4>{% trans %}Credit{% endtrans %}</h4>
12

13
14
<table>
    <thead>
15
16
17
18
        <tr>
            <td>{% trans %}Target of the operation{% endtrans %}</td>
            <td>{% trans %}Sum{% endtrans %}</td>
        </tr>
19
20
21
22
23
24
    </thead>
    <tbody>
        {% for key in credit_statement.keys() %}
        <tr>
            {% if key.target_type == "OTHER" %}
            <td>{{ o.target_label }}</td>
Skia's avatar
Skia committed
25
            {% elif key %}
26
            <td><a href="{{ key.get_absolute_url() }}">{{ key.get_display_name() }}</a></td>
Skia's avatar
Skia committed
27
28
            {% else %}
            <td></td>
29
30
31
32
33
34
35
36
37
38
39
40
41
42
            {% endif %}
            <td>{{ credit_statement[key] }}</td>
        </tr>
        {% endfor %}
    </tbody>

</table>

<p>Total : {{ total_credit }}</p>

<h4>{% trans %}Debit{% endtrans %}</h4>

<table>
    <thead>
43
44
45
46
        <tr>
            <td>{% trans %}Target of the operation{% endtrans %}</td>
            <td>{% trans %}Sum{% endtrans %}</td>
        </tr>
47
48
49
50
51
52
    </thead>
    <tbody>
        {% for key in debit_statement.keys() %}
        <tr>
            {% if key.target_type == "OTHER" %}
            <td>{{ o.target_label }}</td>
Skia's avatar
Skia committed
53
            {% elif key %}
54
            <td><a href="{{ key.get_absolute_url() }}">{{ key.get_display_name() }}</a></td>
Skia's avatar
Skia committed
55
56
            {% else %}
            <td></td>
57
58
59
60
61
62
63
64
65
            {% endif %}
            <td>{{ debit_statement[key] }}</td>
        </tr>
        {% endfor %}
    </tbody>

</table>

<p>Total : {{ total_debit }}</p>
66

Skia's avatar
Skia committed
67
{% endblock %}