diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-24 02:23:20 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-24 02:23:20 -0400 |
commit | 625b94cf04d083a2eca50e5630d8f7b551781742 (patch) | |
tree | 0c45d5b5cae5daeaa5fa6ab91c4bc1de31d90b6b /src/xact.cc | |
parent | cb751913ef85305f2f13cd3a9af80adc00278627 (diff) | |
download | fork-ledger-625b94cf04d083a2eca50e5630d8f7b551781742.tar.gz fork-ledger-625b94cf04d083a2eca50e5630d8f7b551781742.tar.bz2 fork-ledger-625b94cf04d083a2eca50e5630d8f7b551781742.zip |
Switched from using POST_AUTO to ITEM_GENERATED
Diffstat (limited to 'src/xact.cc')
-rw-r--r-- | src/xact.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xact.cc b/src/xact.cc index 1b08c667..c67ecf12 100644 --- a/src/xact.cc +++ b/src/xact.cc @@ -362,7 +362,8 @@ void auto_xact_t::extend_xact(xact_base_t& xact, bool post_handler) posts_list initial_posts(xact.posts.begin(), xact.posts.end()); foreach (post_t * initial_post, initial_posts) { - if (! initial_post->has_flags(POST_AUTO) && predicate(*initial_post)) { + if (! initial_post->has_flags(ITEM_GENERATED) && + predicate(*initial_post)) { foreach (post_t * post, posts) { amount_t amt; assert(post->amount); @@ -408,7 +409,7 @@ void auto_xact_t::extend_xact(xact_base_t& xact, bool post_handler) // the automated xact's one. post_t * new_post = new post_t(account, amt); new_post->copy_details(*post); - new_post->add_flags(POST_AUTO); + new_post->add_flags(ITEM_GENERATED); xact.add_post(new_post); } |