summaryrefslogtreecommitdiff
path: root/src/xact.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-05 17:47:44 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-05 17:47:44 -0600
commit46b124a649d652ef88110478db53cc2b7d69069b (patch)
tree95f34e563a8980fbf1244056b3e80a6a4f8b0044 /src/xact.cc
parente5885cc8a8a1d6cd2a65d04c56ba86d65317f4a1 (diff)
downloadfork-ledger-46b124a649d652ef88110478db53cc2b7d69069b.tar.gz
fork-ledger-46b124a649d652ef88110478db53cc2b7d69069b.tar.bz2
fork-ledger-46b124a649d652ef88110478db53cc2b7d69069b.zip
Added some DEBUG statements
Diffstat (limited to 'src/xact.cc')
-rw-r--r--src/xact.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xact.cc b/src/xact.cc
index f05c6069..7dbf097d 100644
--- a/src/xact.cc
+++ b/src/xact.cc
@@ -274,6 +274,8 @@ bool xact_base_t::finalize()
if (post->amount.has_annotation() && post->amount.annotation().price) {
if (breakdown.basis_cost.commodity() == breakdown.final_cost.commodity()) {
+ DEBUG("xact.finalize", "breakdown.basis_cost = " << breakdown.basis_cost);
+ DEBUG("xact.finalize", "breakdown.final_cost = " << breakdown.final_cost);
if (amount_t gain_loss = breakdown.basis_cost - breakdown.final_cost) {
DEBUG("xact.finalize", "gain_loss = " << gain_loss);
gain_loss.in_place_round();