summaryrefslogtreecommitdiff
path: root/src/report.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-19 13:40:48 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-19 13:40:48 -0400
commit1f1a83c0838a0d4e97cbc32e51d40210714b198f (patch)
tree8a112a44af233729a228b7c92d269ca17a188d8c /src/report.h
parentb684783eff255508ad567afd43b05b2ba9e6ecb7 (diff)
downloadledger-1f1a83c0838a0d4e97cbc32e51d40210714b198f.tar.gz
ledger-1f1a83c0838a0d4e97cbc32e51d40210714b198f.tar.bz2
ledger-1f1a83c0838a0d4e97cbc32e51d40210714b198f.zip
Restored the -j and -J options
Diffstat (limited to 'src/report.h')
-rw-r--r--src/report.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/report.h b/src/report.h
index bead5451..8ce5f913 100644
--- a/src/report.h
+++ b/src/report.h
@@ -134,6 +134,7 @@ public:
value_t fn_display_total(call_scope_t& scope);
value_t fn_market_value(call_scope_t& scope);
value_t fn_strip(call_scope_t& scope);
+ value_t fn_quantity(call_scope_t& scope);
value_t fn_truncate(call_scope_t& scope);
value_t fn_print(call_scope_t& scope);
value_t fn_quoted(call_scope_t& scope);
@@ -204,11 +205,9 @@ public:
set_expr(args[0].to_string());
});
- OPTION_(report_t, amount_data, DO() {
-#if 0
- format_string = session.plot_amount_format;
-#endif
- }); // -j
+ OPTION_(report_t, amount_data, DO() { // -j
+ parent->HANDLER(format_).on(parent->HANDLER(plot_amount_format_).str());
+ });
OPTION(report_t, anon);
OPTION(report_t, ansi);
@@ -536,11 +535,9 @@ public:
set_expr(args[0].to_string());
});
- OPTION_(report_t, total_data, DO() {
-#if 0
- format_string = session.plot_total_format;
-#endif
- }); // -J
+ OPTION_(report_t, total_data, DO() { // -J
+ parent->HANDLER(format_).on(parent->HANDLER(plot_total_format_).str());
+ });
OPTION(report_t, totals);