From 5f01659b1ce8dfd0a85e12f393aa47cb26765d69 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 9 Nov 2009 22:03:12 -0500 Subject: Fix for automated amount multipliers and null amounts --- src/xact.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/xact.cc') diff --git a/src/xact.cc b/src/xact.cc index f4331a29..561170bd 100644 --- a/src/xact.cc +++ b/src/xact.cc @@ -493,7 +493,9 @@ 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 || initial_post->amount.is_null()) + if ((post_handler && + ! initial_post->has_flags(POST_CALCULATED)) || + initial_post->amount.is_null()) continue; amt = initial_post->amount * post->amount; } else { -- cgit v1.2.3