diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-09 22:03:12 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-09 22:03:12 -0500 |
commit | 5f01659b1ce8dfd0a85e12f393aa47cb26765d69 (patch) | |
tree | 26ced7a89ca9ac20c4e0c76d65a5dc5a648e6232 /src/xact.cc | |
parent | 35a2873186354b24188d8951aa4a7b12b426c8f2 (diff) | |
download | fork-ledger-5f01659b1ce8dfd0a85e12f393aa47cb26765d69.tar.gz fork-ledger-5f01659b1ce8dfd0a85e12f393aa47cb26765d69.tar.bz2 fork-ledger-5f01659b1ce8dfd0a85e12f393aa47cb26765d69.zip |
Fix for automated amount multipliers and null amounts
Diffstat (limited to 'src/xact.cc')
-rw-r--r-- | src/xact.cc | 4 |
1 files changed, 3 insertions, 1 deletions
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 { |