diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-07 05:37:49 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-07 05:37:49 -0600 |
commit | 1e18536a8c6e3e83257687ec4588ddba5fcb890b (patch) | |
tree | 394e40ad0c5df3647457291eee0fc2ef48ea4da5 /src/xact.cc | |
parent | 89e0472b50364bed2a5a2068c0121b64b3b0321b (diff) | |
download | fork-ledger-1e18536a8c6e3e83257687ec4588ddba5fcb890b.tar.gz fork-ledger-1e18536a8c6e3e83257687ec4588ddba5fcb890b.tar.bz2 fork-ledger-1e18536a8c6e3e83257687ec4588ddba5fcb890b.zip |
Deferred notes were being processed too late
Diffstat (limited to 'src/xact.cc')
-rw-r--r-- | src/xact.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/xact.cc b/src/xact.cc index 5e4b4c64..4ec40f69 100644 --- a/src/xact.cc +++ b/src/xact.cc @@ -779,6 +779,14 @@ void auto_xact_t::extend_xact(xact_base_t& xact, parse_context_t& context) journal->register_account(account->fullname(), new_post, journal->master); + if (deferred_notes) { + foreach (deferred_tag_data_t& data, *deferred_notes) { + if (! data.apply_to_post || data.apply_to_post == post) + new_post->parse_tags(data.tag_data.c_str(), bound_scope, + data.overwrite_existing); + } + } + extend_post(*new_post, *journal); xact.add_post(new_post); @@ -786,14 +794,6 @@ void auto_xact_t::extend_xact(xact_base_t& xact, parse_context_t& context) if (new_post->must_balance()) needs_further_verification = true; - - if (deferred_notes) { - foreach (deferred_tag_data_t& data, *deferred_notes) { - if (data.apply_to_post == post) - new_post->parse_tags(data.tag_data.c_str(), bound_scope, - data.overwrite_existing); - } - } } } } |