diff options
author | Nicolas Vigier <boklm@mageia.org> | 2013-05-16 20:26:52 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2013-05-16 20:26:52 +0000 |
commit | 248197504db43892159f18d6f1859b165c93c6e3 (patch) | |
tree | e265c7e10df5323f517e9eba4fe689bf2eb1d45d /tmpl/transactions_by_month.html | |
parent | 4bcc832376e999f0e820e7cc1da6275b13fc0b09 (diff) | |
download | mgatres-248197504db43892159f18d6f1859b165c93c6e3.tar mgatres-248197504db43892159f18d6f1859b165c93c6e3.tar.gz mgatres-248197504db43892159f18d6f1859b165c93c6e3.tar.bz2 mgatres-248197504db43892159f18d6f1859b165c93c6e3.tar.xz mgatres-248197504db43892159f18d6f1859b165c93c6e3.zip |
Add yearly and monthly transactions pages
git-svn-id: svn+ssh://svn.mageia.org/svn/soft/mga-treasurer/trunk@8283 5b7c3c08-40e5-403b-9995-ace06908e4af
Diffstat (limited to 'tmpl/transactions_by_month.html')
-rw-r--r-- | tmpl/transactions_by_month.html | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/tmpl/transactions_by_month.html b/tmpl/transactions_by_month.html new file mode 100644 index 0000000..063094e --- /dev/null +++ b/tmpl/transactions_by_month.html @@ -0,0 +1,45 @@ +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <title>[% config.sitename %]: Transactions for [% month %]</title> + </head> + <body> + <h1>Mageia.Org accounts transactions for month [% month %]</h1> + <h3>Summary</h3> + <ul> + <li> + <b>Start balance</b>: [% transactions.by_month.$month.start_balance %] Euros + </li> + <li> + <b>End balance</b>: [% transactions.by_month.$month.end_balance %] Euros + </li> + <li> + <b>Revenues</b>: [% transactions.by_month.$month.revenues %] Euros + </li> + <li> + <b>Expenses</b>: [% transactions.by_month.$month.expenses %] Euros + </li> + </ul> + <h3>By category</h3> + <ul> + [% FOR ca IN transactions.by_month.$month.ca_balance.keys %] + <li><b>[% transactions.by_ca.$ca.c_name %]</b>: [% transactions.by_month.$month.ca_balance.$ca %] Euros</b></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_month.$month.transactions.sort('date').reverse %] + [%- INCLUDE tra_row.html %] + [%- END -%] + </table> + </body> +</html> |