journal_details.jinja 1.55 KB
Newer Older
Skia's avatar
Skia committed
1
2
3
{% extends "core/base.jinja" %}

{% block content %}
Skia's avatar
Skia committed
4
5
6
7
8
9
10
<p>
<a href="{{ url('accounting:bank_list') }}">Accounting</a> >
<a href="{{ url('accounting:bank_details', b_account_id=object.club_account.bank_account.id) }}">{{object.club_account.bank_account }}</a> >
<a href="{{ url('accounting:club_details', c_account_id=object.club_account.id) }}">{{ object.club_account }}</a> >
{{ object.name }}
</p>
    <p><strong>Amount: </strong>{{ object.amount }} € - <strong>Effective amount: </strong>{{ object.effective_amount }}</p>
Skia's avatar
Skia committed
11
    <p><a href="{{ url('accounting:op_new') }}">New operation</a></p>
Skia's avatar
Skia committed
12
13
14
15
16
17
18
19
20
21
22
23
24
25
    <table>
        <tr>
            <td>Nb</td>
            <td>Date</td>
            <td>Label</td>
            <td>Amount</td>
            <td>Payment mode</td>
            <!-- <td>Target</td> -->
            <td>Code</td>
            <td>Nature</td>
            <td>Done</td>
            <td>Comment</td>
            <td>Actions</td>
        </tr>
Skia's avatar
Skia committed
26
    {% for o in object.operations.all() %}
Skia's avatar
Skia committed
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
        <tr>
            <td>{{ o.id }}</td>
            <td>{{ o.date }}</td>
            <td>{{ o.label }}</td>
            <td>{{ o.amount }}</td>
            <td>{{ o.mode }}</td>
            <td>{{ o.accounting_type.code }}</td>
            <td>{{ o.accounting_type.label }}</td>
            {% if o.done %}
            <td>Yes</td>
            {% else %}
            <td>No</td>
            {% endif %}
            <td>{{ o.remark }}</td>
            <td><a href="{{ url('accounting:op_edit', op_id=o.id) }}">Edit</a></td>
        </tr>
Skia's avatar
Skia committed
43
    {% endfor %}
Skia's avatar
Skia committed
44
    </table>
Skia's avatar
Skia committed
45
46
47
48
49

{% endblock %}