diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-07 05:19:46 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-07 05:19:46 -0600 |
commit | 69b25d367ed2317a537aefa9744ca315b5422fa5 (patch) | |
tree | 9368418e9a98d1c4141d20d7b1fa79794f4c9fa5 /src | |
parent | 3ae4a38e4df38ed857dac8ffa26dfb1387f2b62d (diff) | |
download | fork-ledger-69b25d367ed2317a537aefa9744ca315b5422fa5.tar.gz fork-ledger-69b25d367ed2317a537aefa9744ca315b5422fa5.tar.bz2 fork-ledger-69b25d367ed2317a537aefa9744ca315b5422fa5.zip |
Call register_account for posts created by auto xacts
Diffstat (limited to 'src')
-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 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); |