aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl/transactions_by_year.html
blob: 2397d1db5e1d3bc5524acf092b9572363eaa7c33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>[% config.sitename %]: Transactions for [% year %]</title>
    </head>
    <body>
        <h1>Mageia.Org accounts transactions for year [% year %]</h1>
        <h3>Summary</h3>
        <ul>
            <li>
            <b>Start balance</b>: [% transactions.by_year.$year.start_balance %] Euros
            </li>
            <li>
            <b>End balance</b>: [% transactions.by_year.$year.end_balance %] Euros
            </li>
            <li>
            <b>Revenues</b>: [% transactions.by_year.$year.revenues %] Euros
            </li>
            <li>
            <b>Expenses</b>: [% transactions.by_year.$year.expenses %] Euros
            </li>
        </ul>
        <h3>By category</h3>
        <ul>
            [% FOR ca IN transactions.by_year.$year.ca_balance.keys %]
            <li><b><a href="c_[% ca %].html">[% transactions.by_ca.$ca.c_name %]</a></b>: [% transactions.by_year.$year.ca_balance.$ca %] Euros</b></li>
            [%- END -%]
        </ul>
        <h3>Monthly reports</h3>
        <ul>
        [%- FOR month IN transactions.by_month.keys.sort -%]
        [%- IF transactions.by_month.$month.year == year -%]
            <li><a href="m_[% month %].html">[% month %]</a></li>

        [%- END -%]
        [%- END -%]
        </ul>
        <h3>Details</h3>
        <table border="1">
            <tr>
                <th>Date</th>
                <th>Amount</th>
                <th>Account</th>
                <th>Who</th>
                <th>Notes</th>
                <th>Category</th>
            </tr>
            [%- USE date(format='%Y/%m/%d') -%]
            [% FOR tra IN transactions.by_year.$year.transactions.sort('date').reverse %]
            [%- INCLUDE tra_row.html %]
            [%- END -%]
        </table>
    </body>
</html>