From 69b25d367ed2317a537aefa9744ca315b5422fa5 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 7 Mar 2012 05:19:46 -0600 Subject: Call register_account for posts created by auto xacts --- src/xact.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/xact.cc b/src/xact.cc index 5c43558d..082eacc8 100644 --- a/src/xact.cc +++ b/src/xact.cc @@ -775,9 +775,10 @@ void auto_xact_t::extend_xact(xact_base_t& xact, parse_context_t& context) post_t * new_post = new post_t(account, amt); new_post->copy_details(*post); new_post->add_flags(ITEM_GENERATED); + new_post->account = + journal->register_account(account->fullname(), new_post, + journal->master); - // jww (2012-02-27): Do account directive assertions get applied - // to postings generated from automated transactions? xact.add_post(new_post); new_post->account->add_post(new_post); -- cgit v1.2.3