summaryrefslogtreecommitdiff
path: root/src/report.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-23 15:37:39 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-23 15:37:39 -0400
commita576842865a4f5238dd029dd748c6628baf72a51 (patch)
treef4dfc9c77db9472d8473f391629032b7f08e4603 /src/report.h
parentaff7b56673dc7af1fd597c1e847fa33d75cbd704 (diff)
downloadfork-ledger-a576842865a4f5238dd029dd748c6628baf72a51.tar.gz
fork-ledger-a576842865a4f5238dd029dd748c6628baf72a51.tar.bz2
fork-ledger-a576842865a4f5238dd029dd748c6628baf72a51.zip
Added --revalued-total option, used by --gain
This option sets the total by which revalued transactions are determined. Only needed if the display total is not appropriate.
Diffstat (limited to 'src/report.h')
-rw-r--r--src/report.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/report.h b/src/report.h
index 0c2be64d..57cef3c5 100644
--- a/src/report.h
+++ b/src/report.h
@@ -537,6 +537,19 @@ public:
OPTION(report_t, related_all);
OPTION(report_t, revalued);
OPTION(report_t, revalued_only);
+
+ OPTION__
+ (report_t, revalued_total_,
+ expr_t expr;
+ CTOR(report_t, revalued_total_) {}
+ void set_expr(const string& str) {
+ expr = str;
+ on(str);
+ }
+ DO_(args) {
+ set_expr(args[0].to_string());
+ });
+
OPTION(report_t, set_account_);
OPTION(report_t, set_payee_);
OPTION(report_t, set_price_);