summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xact.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xact.cc b/src/xact.cc
index 749eb3e5..0c7f65a1 100644
--- a/src/xact.cc
+++ b/src/xact.cc
@@ -265,7 +265,7 @@ bool xact_base_t::finalize()
DEBUG("xact.finalize", "per_unit_cost = " << per_unit_cost);
foreach (post_t * post, posts) {
- const amount_t& amt(post->amount);
+ const amount_t& amt(post->amount.reduced());
if (post->must_balance() && amt.commodity() == comm) {
balance -= amt;