summaryrefslogtreecommitdiff
path: root/src/filters.h
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/filters.h
parented0b99fcfc37844f5d88eb7678ca23b490fd5b98 (diff)
downloadfork-ledger-54991cc22e51733bfeadb1fdd8b3001b06df4d74.tar.gz
fork-ledger-54991cc22e51733bfeadb1fdd8b3001b06df4d74.tar.bz2
fork-ledger-54991cc22e51733bfeadb1fdd8b3001b06df4d74.zip
Fix unrounding for equity
Diffstat (limited to 'src/filters.h')
-rw-r--r--src/filters.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/filters.h b/src/filters.h
index 4972b710..7252b057 100644
--- a/src/filters.h
+++ b/src/filters.h
@@ -790,13 +790,14 @@ class posts_as_equity : public subtotal_posts
post_t * last_post;
account_t * equity_account;
account_t * balance_account;
+ bool unround;
posts_as_equity();
public:
posts_as_equity(post_handler_ptr _handler, report_t& _report,
- expr_t& amount_expr)
- : subtotal_posts(_handler, amount_expr), report(_report) {
+ expr_t& amount_expr, bool _unround)
+ : subtotal_posts(_handler, amount_expr), report(_report), unround(_unround) {
create_accounts();
TRACE_CTOR(posts_as_equity, "post_handler_ptr, expr_t&");
}