summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-15 15:50:15 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-15 15:50:15 -0400
commit48d985aacc5106592aa191c707315ee24917aacb (patch)
treeda9f2eea63057b73dd1a520b72ed4904c36920d4
parent3ef07ae39f83203738846e36523cef938a70288f (diff)
downloadfork-ledger-48d985aacc5106592aa191c707315ee24917aacb.tar.gz
fork-ledger-48d985aacc5106592aa191c707315ee24917aacb.tar.bz2
fork-ledger-48d985aacc5106592aa191c707315ee24917aacb.zip
Restored the --average (-A) report option
-rw-r--r--src/report.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/report.h b/src/report.h
index 6216f369..32523b07 100644
--- a/src/report.h
+++ b/src/report.h
@@ -229,7 +229,11 @@ public:
OPTION(report_t, anon);
OPTION(report_t, ansi);
OPTION(report_t, ansi_invert);
- OPTION(report_t, average); // -A
+
+ OPTION_(report_t, average, DO() { // -A
+ parent->HANDLER(display_total_).set_expr("total//count");
+ });
+
OPTION(report_t, balance_format_);
OPTION(report_t, base);