summaryrefslogtreecommitdiff
path: root/src/chain.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-03-06 00:19:24 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-03-06 00:27:16 -0400
commitdd23edd5cee8e712e13a3b5eefffcc3c57bf9e10 (patch)
tree55081ead4eb51ab48a2fe3ceb0a654d8ae226311 /src/chain.cc
parent6ac79137f74a9257c0079f14cf3ef49e8da6375a (diff)
downloadfork-ledger-dd23edd5cee8e712e13a3b5eefffcc3c57bf9e10.tar.gz
fork-ledger-dd23edd5cee8e712e13a3b5eefffcc3c57bf9e10.tar.bz2
fork-ledger-dd23edd5cee8e712e13a3b5eefffcc3c57bf9e10.zip
Implemented --unround using value expressions
Diffstat (limited to 'src/chain.cc')
-rw-r--r--src/chain.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/chain.cc b/src/chain.cc
index 04af1601..e3bf2443 100644
--- a/src/chain.cc
+++ b/src/chain.cc
@@ -90,13 +90,11 @@ post_handler_ptr chain_post_handlers(report_t& report,
report, report.HANDLED(revalued_only)));
}
- // calc_posts computes visited posting values and the running total
+ // 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, only_preliminaries));
- // unround_posts will unround the amounts in all postings
- if (report.HANDLED(unround))
- handler.reset(new unround_posts(handler));
-
// filter_posts will only pass through posts matching the
// `secondary_predicate'.
if (report.HANDLED(only_)) {