Fix for automated amount multipliers and null amounts
This commit is contained in:
parent
35a2873186
commit
5f01659b1c
1 changed files with 3 additions and 1 deletions
|
|
@ -493,7 +493,9 @@ void auto_xact_t::extend_xact(xact_base_t& xact, bool post_handler)
|
||||||
amount_t amt;
|
amount_t amt;
|
||||||
assert(post->amount);
|
assert(post->amount);
|
||||||
if (! post->amount.commodity()) {
|
if (! post->amount.commodity()) {
|
||||||
if (post_handler || initial_post->amount.is_null())
|
if ((post_handler &&
|
||||||
|
! initial_post->has_flags(POST_CALCULATED)) ||
|
||||||
|
initial_post->amount.is_null())
|
||||||
continue;
|
continue;
|
||||||
amt = initial_post->amount * post->amount;
|
amt = initial_post->amount * post->amount;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue