club_account_details.jinja 1.49 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
<p>
<a href="{{ url('accounting:bank_list') }}">Accounting</a> >
<a href="{{ url('accounting:bank_details', b_account_id=object.bank_account.id) }}">{{object.bank_account }}</a> >
{{ object }}
Skia's avatar
Skia committed
8
9
10
11
12
13
<h2>View account: {{ object.name }}</h2>
    <ul>
    {% for k,v in object.__dict__.items() %}
        <li>{{ k }} - {{ v }}</li>
    {% endfor %}
    </ul>
Skia's avatar
Skia committed
14
15
16
17
18
19
20
21
22
23
24
25
26
27
    {% if not object.has_open_journal() %}
        <p><a href="{{ url('accounting:journal_new') }}?parent={{ object.id }}">New journal</a></p>
    {% else %}
        <p>You can not create new journal while you still have one opened</p>
    {% endif %}
    <table>
        <tr>
            <td>Name</td>
            <td>Start</td>
            <td>End</td>
            <td>Amount</td>
            <td>Effective amount</td>
            <td>Closed</td>
        </tr>
Skia's avatar
Skia committed
28
    {% for j in object.journals.all() %}
Skia's avatar
Skia committed
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
    <tr>
        <td>{{ j.name }}</td>
        <td>{{ j.start_date }}</td>
        {% if j.end_date %}
            <td>{{ j.end_date }}</td>
        {% else %}
            <td> - </td>
        {% endif %}
        <td>{{ j.amount }}</td>
        <td>{{ j.effective_amount }}</td>
        {% if j.closed %}
        <td>Yes</td>
        {% else %}
        <td>No</td>
        {% endif %}
        <td> <a href="{{ url('accounting:journal_details', j_id=j.id) }}">View</a>
        <a href="{{ url('accounting:journal_edit', j_id=j.id) }}">Edit</a> </td>
    </tr>
Skia's avatar
Skia committed
47
    {% endfor %}
Skia's avatar
Skia committed
48
    </table>
Skia's avatar
Skia committed
49
50
51
52
53

{% endblock %}