Fixed a minor bug in handling of automated xacts

There was a if statement with an inverse boolean meaning, which caused
some automated transaction postings to have a null amount.
This commit is contained in:
John Wiegley 2009-02-23 19:20:57 -04:00
parent 944c63e6f2
commit cb751913ef
2 changed files with 2 additions and 1 deletions

View file

@ -367,7 +367,7 @@ void auto_xact_t::extend_xact(xact_base_t& xact, bool post_handler)
amount_t amt;
assert(post->amount);
if (! post->amount.commodity()) {
if (! post_handler)
if (post_handler)
continue;
assert(initial_post->amount);
amt = initial_post->amount * post->amount;

View file

@ -2,6 +2,7 @@ print --actual
<<<
= account =~ /Books/
Expenses:Taxes 0.05
Assets:Checking -0.05
2008/01/01 January
Expenses:Books $10.00