diff options
author | John Wiegley <johnw@newartisans.com> | 2009-03-06 00:19:24 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-03-06 00:27:16 -0400 |
commit | dd23edd5cee8e712e13a3b5eefffcc3c57bf9e10 (patch) | |
tree | 55081ead4eb51ab48a2fe3ceb0a654d8ae226311 /src/report.h | |
parent | 6ac79137f74a9257c0079f14cf3ef49e8da6375a (diff) | |
download | ledger-dd23edd5cee8e712e13a3b5eefffcc3c57bf9e10.tar.gz ledger-dd23edd5cee8e712e13a3b5eefffcc3c57bf9e10.tar.bz2 ledger-dd23edd5cee8e712e13a3b5eefffcc3c57bf9e10.zip |
Implemented --unround using value expressions
Diffstat (limited to 'src/report.h')
-rw-r--r-- | src/report.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/report.h b/src/report.h index 2b973bca..a8f048d3 100644 --- a/src/report.h +++ b/src/report.h @@ -145,6 +145,7 @@ public: value_t fn_scrub(call_scope_t& scope); value_t fn_quantity(call_scope_t& scope); value_t fn_rounded(call_scope_t& scope); + value_t fn_unrounded(call_scope_t& scope); value_t fn_truncated(call_scope_t& scope); value_t fn_abs(call_scope_t& scope); value_t fn_justify(call_scope_t& scope); @@ -639,7 +640,9 @@ public: parent->HANDLER(limit_).on("uncleared|pending"); }); - OPTION(report_t, unround); + OPTION_(report_t, unround, DO() { + parent->HANDLER(amount_).set_expr("unrounded(amount)"); + }); OPTION_(report_t, weekly, DO() { // -W parent->HANDLER(period_).on("weekly"); |