diff options
author | Oleg Bulatov <oleg@bulatov.me> | 2022-05-05 08:11:05 +0200 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2022-05-06 06:47:07 +0800 |
commit | 54991cc22e51733bfeadb1fdd8b3001b06df4d74 (patch) | |
tree | 98015b5e3abf3ce4352997bf1802afbc5e26e178 /src/filters.cc | |
parent | ed0b99fcfc37844f5d88eb7678ca23b490fd5b98 (diff) | |
download | fork-ledger-54991cc22e51733bfeadb1fdd8b3001b06df4d74.tar.gz fork-ledger-54991cc22e51733bfeadb1fdd8b3001b06df4d74.tar.bz2 fork-ledger-54991cc22e51733bfeadb1fdd8b3001b06df4d74.zip |
Fix unrounding for equity
Diffstat (limited to 'src/filters.cc')
-rw-r--r-- | src/filters.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/filters.cc b/src/filters.cc index 6db8af80..7f615785 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -1106,6 +1106,8 @@ void posts_as_equity::report_subtotal() value_t total = 0L; foreach (values_map::value_type& pair, values) { value_t value(pair.second.value.strip_annotations(report.what_to_keep())); + if (unround) + value.in_place_unround(); if (! value.is_zero()) { if (value.is_balance()) { value.as_balance_lval().map_sorted_amounts |