From 096e94906cfcb29ae4913d26d136fa834b8e905b Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Thu, 16 May 2013 20:27:00 +0000 Subject: Add per account transactions pages git-svn-id: svn+ssh://svn.mageia.org/svn/soft/mga-treasurer/trunk@8286 5b7c3c08-40e5-403b-9995-ace06908e4af --- NEWS | 1 + mktreasurer | 11 +++++++++++ tmpl/index.html | 6 ++---- tmpl/tra_row.html | 2 +- tmpl/transactions_by_ac.html | 30 ++++++++++++++++++++++++++++++ 5 files changed, 45 insertions(+), 5 deletions(-) create mode 100644 tmpl/transactions_by_ac.html diff --git a/NEWS b/NEWS index 7793468..26a5524 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,6 @@ - sort transactions by category - add yearly and monthly transactions pages +- add per account transactions pages Version 0.2 diff --git a/mktreasurer b/mktreasurer index 961e269..9cf8c7a 100755 --- a/mktreasurer +++ b/mktreasurer @@ -230,6 +230,17 @@ sub output_pages { "p_$pa") if $transactions->{by_pa}->{$pa}; } + foreach my $ac (keys %{$transactions->{by_ac}}) { + my $vars = { + config => $config, + ac => $ac, + account => $transactions->{by_ac}->{$ac}->{account}, + donations => $donations, + transactions => $transactions, + }; + process_template($template, 'transactions_by_ac', $vars, "a_$ac"); + } + my $vars = { config => $config, donations => $donations, diff --git a/tmpl/index.html b/tmpl/index.html index 511c4b3..0c8153f 100644 --- a/tmpl/index.html +++ b/tmpl/index.html @@ -30,13 +30,11 @@ - More details coming soon. -

Expenses and revenues by category