aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl/transactions_by_ca.html
blob: ff48ecde927548027457e49ce1607caefa90dae4 (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
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>[% config.sitename %]: Transactions for [% c_name %]</title>
    </head>
    <body>
        <h1>Mageia.Org transactions for category [% c_name %]</h1>
        <h3>Summary</h3>
        <ul>
            [% IF transactions.by_ca.$ca.revenues != 0 %]
            <li><b>Revenues</b>: [% transactions.by_ca.$ca.revenues %] Euros</li>
            [% END %]
            [% IF transactions.by_ca.$ca.expenses != 0 %]
            <li><b>Expenses</b>: [% transactions.by_ca.$ca.expenses %] Euros</li>
            [% 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_ca.$ca.transactions.sort('date').reverse %]
            [%- INCLUDE tra_row.html %]
            [%- END -%]
        </table>
    </body>
</html>