summaryrefslogtreecommitdiff
path: root/src/filters.cc
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2012-11-06 14:04:27 -0700
committerCraig Earls <enderw88@gmail.com>2012-11-06 14:04:27 -0700
commite77e9d692aea5a061f6fde144a56de085b1a74c4 (patch)
tree22aabdfb6fa6af62801a0c584e8838b15e814577 /src/filters.cc
parentdc24ea721758b4a0121c78c4737492041a8dd093 (diff)
parent3a766aa7c5e58f65833966b4ca1a1d261b647b1b (diff)
downloadfork-ledger-e77e9d692aea5a061f6fde144a56de085b1a74c4.tar.gz
fork-ledger-e77e9d692aea5a061f6fde144a56de085b1a74c4.tar.bz2
fork-ledger-e77e9d692aea5a061f6fde144a56de085b1a74c4.zip
Merge branch 'next' of https://github.com/jwiegley/ledger into next
Diffstat (limited to 'src/filters.cc')
-rw-r--r--src/filters.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/filters.cc b/src/filters.cc
index f5694133..5e2bf983 100644
--- a/src/filters.cc
+++ b/src/filters.cc
@@ -530,9 +530,11 @@ bool display_filter_posts::output_rounding(post_t& post)
}
// Allow the posting to be displayed if:
- // 1. It's display_amount would display as non-zero
- // 2. The --empty option was specified
- // 3. The account of the posting is <Revalued>
+ // 1. Its display_amount would display as non-zero, or
+ // 2. The --empty option was specified, or
+ // 3. a) The account of the posting is <Revalued>, and
+ // b) the revalued option is specified, and
+ // c) the --no-rounding option is not specified.
if (post.account == revalued_account) {
if (show_rounding)