summaryrefslogtreecommitdiff
path: root/src/chain.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-03-03 17:08:11 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-03-03 17:08:11 -0400
commiteb45a0a4f46577c6615695256e5f6866a27ef20e (patch)
tree7839ad1f692df20276921ec182a78a14b13c61b9 /src/chain.cc
parentcf2548c29cbd10c41bd23d119394489e1ced8e2a (diff)
downloadfork-ledger-eb45a0a4f46577c6615695256e5f6866a27ef20e.tar.gz
fork-ledger-eb45a0a4f46577c6615695256e5f6866a27ef20e.tar.bz2
fork-ledger-eb45a0a4f46577c6615695256e5f6866a27ef20e.zip
Normalized how account totals are calculated
Diffstat (limited to 'src/chain.cc')
-rw-r--r--src/chain.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/chain.cc b/src/chain.cc
index 9155d4fa..5b1ba18c 100644
--- a/src/chain.cc
+++ b/src/chain.cc
@@ -86,13 +86,13 @@ post_handler_ptr chain_post_handlers(report_t& report,
report.HANDLER(display_total_).expr,
report.HANDLER(display_total_).expr,
report, report.HANDLED(revalued_only)));
-
- // calc_posts computes the running total. When this appears will
- // determine, for example, whether filtered posts are included or excluded
- // from the running total.
- handler.reset(new calc_posts(handler, expr));
}
+ // calc_posts computes the running total. When this appears will determine,
+ // for example, whether filtered posts are included or excluded from the
+ // running total.
+ handler.reset(new calc_posts(handler, expr, report.HANDLED(totals)));
+
// unround_posts will unround the amounts in all postings
if (report.HANDLED(unround))
handler.reset(new unround_posts(handler));