summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-08 20:06:25 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-08 20:06:25 -0400
commit63f9d97ddaf26283b5f8a154abae937dca05d290 (patch)
treea2e1f957289e0f5b4d897e0c570db6183d318634
parent02bd9d29cf7c899b5be4575f00f967e277aece99 (diff)
downloadfork-ledger-63f9d97ddaf26283b5f8a154abae937dca05d290.tar.gz
fork-ledger-63f9d97ddaf26283b5f8a154abae937dca05d290.tar.bz2
fork-ledger-63f9d97ddaf26283b5f8a154abae937dca05d290.zip
Correctly compile the expressions passed to -t and -T.
-rw-r--r--src/report.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/report.h b/src/report.h
index 8bcd6b57..418ac0e2 100644
--- a/src/report.h
+++ b/src/report.h
@@ -186,6 +186,9 @@ public:
expr_t expr;
CTOR(report_t, amount_) {
expr = "amount";
+ }
+ DO_(args) {
+ expr = args[0].to_string();
});
OPTION(report_t, amount_data); // -j
@@ -242,6 +245,9 @@ public:
expr_t expr;
CTOR(report_t, display_amount_) {
expr = "amount_expr";
+ }
+ DO_(args) {
+ expr = args[0].to_string();
});
OPTION__
@@ -249,6 +255,9 @@ public:
expr_t expr;
CTOR(report_t, display_total_) {
expr = "total_expr";
+ }
+ DO_(args) {
+ expr = args[0].to_string();
});
OPTION(report_t, dow);
@@ -357,6 +366,9 @@ public:
expr_t expr;
CTOR(report_t, total_) {
expr = "total";
+ }
+ DO_(args) {
+ expr = args[0].to_string();
});
OPTION(report_t, total_data); // -J