summaryrefslogtreecommitdiff
path: root/src/filters.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-20 04:56:03 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-20 04:56:03 -0500
commite3248ee5a6b2c29e1c35eb0315fd66370a117784 (patch)
treeb394d8045e8e524d3dc7c6c6efd9fe865756e994 /src/filters.cc
parent446beee376ecfd5371335ac99cd287fc26851006 (diff)
downloadledger-e3248ee5a6b2c29e1c35eb0315fd66370a117784.tar.gz
ledger-e3248ee5a6b2c29e1c35eb0315fd66370a117784.tar.bz2
ledger-e3248ee5a6b2c29e1c35eb0315fd66370a117784.zip
Fix problems with <Adjustment> postings
Diffstat (limited to 'src/filters.cc')
-rw-r--r--src/filters.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/filters.cc b/src/filters.cc
index 02dc392b..58e5fcaf 100644
--- a/src/filters.cc
+++ b/src/filters.cc
@@ -340,9 +340,10 @@ namespace {
const bool act_date_p = true,
const value_t& total = value_t(),
const bool direct_amount = false,
- const bool mark_visited = false)
+ const bool mark_visited = false,
+ const bool bidir_link = true)
{
- post_t& post = temps.create_post(*xact, account);
+ post_t& post = temps.create_post(*xact, account, bidir_link);
post.add_flags(ITEM_GENERATED);
// If the account for this post is all virtual, then report the post as
@@ -566,7 +567,9 @@ bool display_filter_posts::output_rounding(post_t& post)
/* date= */ date_t(),
/* act_date_p= */ true,
/* total= */ precise_display_total,
- /* direct_amount= */ true);
+ /* direct_amount= */ true,
+ /* mark_visited= */ false,
+ /* bidir_link= */ false);
}
}
if (show_rounding)