From 248197504db43892159f18d6f1859b165c93c6e3 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Thu, 16 May 2013 20:26:52 +0000 Subject: 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 --- NEWS | 1 + tmpl/index.html | 8 ++++++ tmpl/tra_row.html | 16 ++++++++++++ tmpl/transactions_by_month.html | 45 ++++++++++++++++++++++++++++++++++ tmpl/transactions_by_year.html | 54 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 124 insertions(+) create mode 100644 tmpl/tra_row.html create mode 100644 tmpl/transactions_by_month.html create mode 100644 tmpl/transactions_by_year.html diff --git a/NEWS b/NEWS index 8fae572..7793468 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,5 @@ - sort transactions by category +- add yearly and monthly transactions pages Version 0.2 diff --git a/tmpl/index.html b/tmpl/index.html index af713fa..f5976d1 100644 --- a/tmpl/index.html +++ b/tmpl/index.html @@ -44,6 +44,14 @@ [%- END -%] +

Accounts history

+ + +

Grisbi

Mageia.Org accounts are managed using grisbi. diff --git a/tmpl/tra_row.html b/tmpl/tra_row.html new file mode 100644 index 0000000..afe3f56 --- /dev/null +++ b/tmpl/tra_row.html @@ -0,0 +1,16 @@ + + [% date.format(tra.date) %] + [% tra.amount %] + [% tra.account %] + [% tra.who %] + [% IF tra.trt %] + Internal transfert + [% ELSE %] + [% tra.notes %] + [% END %] + [% tra.c_name %] + [% IF tra.sc_name %] + : [% tra.sc_name %] + [% END %] + + 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 @@ + + + + [% config.sitename %]: Transactions for [% month %] + + +

Mageia.Org accounts transactions for month [% month %]

+

Summary

+ +

By category

+ +

Details

+ + + + + + + + + + [%- USE date(format='%Y/%m/%d') -%] + [%- FOR tra IN transactions.by_month.$month.transactions.sort('date').reverse %] + [%- INCLUDE tra_row.html %] + [%- END -%] +
DateAmountAccountWhoNotesCategory
+ + diff --git a/tmpl/transactions_by_year.html b/tmpl/transactions_by_year.html new file mode 100644 index 0000000..5ee0095 --- /dev/null +++ b/tmpl/transactions_by_year.html @@ -0,0 +1,54 @@ + + + + [% config.sitename %]: Transactions for [% year %] + + +

Mageia.Org accounts transactions for year [% year %]

+

Summary

+ +

By category

+ +

Monthly reports

+ +

Details

+ + + + + + + + + + [%- USE date(format='%Y/%m/%d') -%] + [% FOR tra IN transactions.by_year.$year.transactions.sort('date').reverse %] + [%- INCLUDE tra_row.html %] + [%- END -%] +
DateAmountAccountWhoNotesCategory
+ + -- cgit v1.2.1