Merge pull request #552 from dedmons/fix-balance-assert-with-auto-xact
Fix auto xact posts not getting applied to account total durring journal parse
This commit is contained in:
commit
916641f9a0
1 changed files with 6 additions and 3 deletions
|
|
@ -396,9 +396,9 @@ bool xact_base_t::finalize()
|
|||
}
|
||||
|
||||
if (post->has_flags(POST_DEFERRED))
|
||||
post->account->add_deferred_post(id(), post);
|
||||
else
|
||||
post->account->add_post(post);
|
||||
post->account->add_deferred_post(id(), post);
|
||||
else
|
||||
post->account->add_post(post);
|
||||
|
||||
post->xdata().add_flags(POST_EXT_VISITED);
|
||||
post->account->xdata().add_flags(ACCOUNT_EXT_VISITED);
|
||||
|
|
@ -806,6 +806,9 @@ void auto_xact_t::extend_xact(xact_base_t& xact, parse_context_t& context)
|
|||
xact.add_post(new_post);
|
||||
new_post->account->add_post(new_post);
|
||||
|
||||
// Add flag so this post updates the account balance
|
||||
new_post->xdata().add_flags(POST_EXT_VISITED);
|
||||
|
||||
if (new_post->must_balance())
|
||||
needs_further_verification = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue