journal_statement_person.jinja 1.88 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 %}
Krophil's avatar
Krophil committed
9
10
<div id="accounting">
    <h3>{% trans %}Statement by person: {% endtrans %} {{ object.name }}</h3>
11

Krophil's avatar
Krophil committed
12
    <h4>{% trans %}Credit{% endtrans %}</h4>
13

Krophil's avatar
Krophil committed
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    <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 %}
Sli's avatar
Sli committed
31
                <td>{{ "%.2f" % credit_statement[key] }}</td>
Krophil's avatar
Krophil committed
32
33
34
            </tr>
            {% endfor %}
        </tbody>
35

Krophil's avatar
Krophil committed
36
    </table>
37

Sli's avatar
Sli committed
38
    <p>Total : {{ "%.2f" % total_credit }}</p>
39

Krophil's avatar
Krophil committed
40
    <h4>{% trans %}Debit{% endtrans %}</h4>
41

Krophil's avatar
Krophil committed
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
    <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 %}
Sli's avatar
Sli committed
59
                <td>{{ "%.2f" % debit_statement[key] }}</td>
Krophil's avatar
Krophil committed
60
61
62
            </tr>
            {% endfor %}
        </tbody>
63

Krophil's avatar
Krophil committed
64
    </table>
65

Sli's avatar
Sli committed
66
    <p>Total : {{ "%.2f" % total_debit }}</p>
Krophil's avatar
Krophil committed
67
</div>
Skia's avatar
Skia committed
68
{% endblock %}