summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-18 23:15:49 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-18 23:19:52 -0500
commit56d6df6123d84abe408e16fcecd7a7600eb33055 (patch)
treed949df9aa02aacf3130731f091e9fed0cae50584
parente27ba3e1ff77537ade8287f1d66cf6fe626c8962 (diff)
downloadfork-ledger-56d6df6123d84abe408e16fcecd7a7600eb33055.tar.gz
fork-ledger-56d6df6123d84abe408e16fcecd7a7600eb33055.tar.bz2
fork-ledger-56d6df6123d84abe408e16fcecd7a7600eb33055.zip
Decompile all amount expressions for accounts reports
This happens after running through all the post handlers, before running any of the account handlers.
-rw-r--r--src/report.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/report.cc b/src/report.cc
index ed3238bc..92525565 100644
--- a/src/report.cc
+++ b/src/report.cc
@@ -278,6 +278,12 @@ void report_t::accounts_report(acct_handler_ptr handler)
chain_post_handlers(*this, post_handler_ptr(new ignore_posts), true);
pass_down_posts(chain, walker);
+ HANDLER(amount_).expr.mark_uncompiled();
+ HANDLER(total_).expr.mark_uncompiled();
+ HANDLER(display_amount_).expr.mark_uncompiled();
+ HANDLER(display_total_).expr.mark_uncompiled();
+ HANDLER(revalued_total_).expr.mark_uncompiled();
+
scoped_ptr<accounts_iterator> iter;
if (! HANDLED(sort_)) {
iter.reset(new basic_accounts_iterator(*session.journal->master));