diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-07 12:46:46 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-07 12:46:46 -0600 |
commit | 7e250696e02e0392bc865f66570da296ced124ab (patch) | |
tree | 8195a38ca7c6e04610f2ca3cecea900ff08f66de /src/chain.cc | |
parent | 77292ac3cda2f1052559991b9d53f1ad7c1fec9a (diff) | |
download | fork-ledger-7e250696e02e0392bc865f66570da296ced124ab.tar.gz fork-ledger-7e250696e02e0392bc865f66570da296ced124ab.tar.bz2 fork-ledger-7e250696e02e0392bc865f66570da296ced124ab.zip |
Many options now have additive effect
For example, -A and -V used to override each other, whereas now:
-A report the average amount
-V report all amounts at current value
-AV report the current value of the average
-VA report the average of all current values
Diffstat (limited to 'src/chain.cc')
-rw-r--r-- | src/chain.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/chain.cc b/src/chain.cc index 400b8f26..f8f0aeff 100644 --- a/src/chain.cc +++ b/src/chain.cc @@ -118,6 +118,10 @@ post_handler_ptr chain_post_handlers(post_handler_ptr base_handler, expr_t& expr(report.HANDLER(amount_).expr); expr.set_context(&report); + report.HANDLER(total_).expr.set_context(&report); + report.HANDLER(display_amount_).expr.set_context(&report); + report.HANDLER(display_total_).expr.set_context(&report); + if (! for_accounts_report) { // Make sure only forecast postings which match are allowed through if (report.HANDLED(forecast_while_)) { |