summaryrefslogtreecommitdiff
path: root/src/chain.cc
diff options
context:
space:
mode:
authorOleg Bulatov <oleg@bulatov.me>2022-05-05 08:11:05 +0200
committerMartin Michlmayr <tbm@cyrius.com>2022-05-06 06:47:07 +0800
commit54991cc22e51733bfeadb1fdd8b3001b06df4d74 (patch)
tree98015b5e3abf3ce4352997bf1802afbc5e26e178 /src/chain.cc
parented0b99fcfc37844f5d88eb7678ca23b490fd5b98 (diff)
downloadfork-ledger-54991cc22e51733bfeadb1fdd8b3001b06df4d74.tar.gz
fork-ledger-54991cc22e51733bfeadb1fdd8b3001b06df4d74.tar.bz2
fork-ledger-54991cc22e51733bfeadb1fdd8b3001b06df4d74.zip
Fix unrounding for equity
Diffstat (limited to 'src/chain.cc')
-rw-r--r--src/chain.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chain.cc b/src/chain.cc
index 7ac7d593..3a96f921 100644
--- a/src/chain.cc
+++ b/src/chain.cc
@@ -213,7 +213,7 @@ post_handler_ptr chain_post_handlers(post_handler_ptr base_handler,
// day_of_week_posts is like period_posts, except that it reports
// all the posts that fall on each subsequent day of the week.
if (report.HANDLED(equity))
- handler.reset(new posts_as_equity(handler, report, expr));
+ handler.reset(new posts_as_equity(handler, report, expr, report.HANDLED(unround)));
else if (report.HANDLED(subtotal))
handler.reset(new subtotal_posts(handler, expr));
}