diff options
author | John Wiegley <johnw@newartisans.com> | 2008-07-17 20:51:28 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-07-17 20:55:15 -0400 |
commit | c673b9669106412d75912124d16db5c975bb60bf (patch) | |
tree | 5430679fcc5fb4f69615bb061af9f5ca28106aa7 | |
parent | 595452e332f338c27a3d7befb75f1b39e5a4f9a7 (diff) | |
download | fork-ledger-c673b9669106412d75912124d16db5c975bb60bf.tar.gz fork-ledger-c673b9669106412d75912124d16db5c975bb60bf.tar.bz2 fork-ledger-c673b9669106412d75912124d16db5c975bb60bf.zip |
Round unbalanced remainders before reporting them, because that will make a
whole lot more sense to the user, rather than reporting the internal
precision.
-rw-r--r-- | journal.cc | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -263,6 +263,9 @@ bool entry_base_t::finalize() error * err = new balance_error("Entry does not balance", new entry_context(*this, "While balancing entry:")); + DEBUG_PRINT("ledger.journal.unbalanced_remainder", + "balance = " << balance); + balance.round(); err->context.push_front (new value_context(balance, "Unbalanced remainder is:")); throw err; |