diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-20 04:56:03 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-20 04:56:03 -0500 |
commit | e3248ee5a6b2c29e1c35eb0315fd66370a117784 (patch) | |
tree | b394d8045e8e524d3dc7c6c6efd9fe865756e994 /src/temps.cc | |
parent | 446beee376ecfd5371335ac99cd287fc26851006 (diff) | |
download | fork-ledger-e3248ee5a6b2c29e1c35eb0315fd66370a117784.tar.gz fork-ledger-e3248ee5a6b2c29e1c35eb0315fd66370a117784.tar.bz2 fork-ledger-e3248ee5a6b2c29e1c35eb0315fd66370a117784.zip |
Fix problems with <Adjustment> postings
Diffstat (limited to 'src/temps.cc')
-rw-r--r-- | src/temps.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/temps.cc b/src/temps.cc index cb471d41..881077f6 100644 --- a/src/temps.cc +++ b/src/temps.cc @@ -81,7 +81,8 @@ post_t& temporaries_t::copy_post(post_t& origin, xact_t& xact, return temp; } -post_t& temporaries_t::create_post(xact_t& xact, account_t * account) +post_t& temporaries_t::create_post(xact_t& xact, account_t * account, + bool bidir_link) { if (! post_temps) post_temps = std::list<post_t>(); @@ -93,7 +94,10 @@ post_t& temporaries_t::create_post(xact_t& xact, account_t * account) temp.account = account; temp.account->add_post(&temp); - xact.add_post(&temp); + if (bidir_link) + xact.add_post(&temp); + else + temp.xact = &xact; return temp; } |