diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-26 00:56:47 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-26 03:16:39 -0400 |
commit | d58797e98c82ced16fbc0a213fd104fb72a9de08 (patch) | |
tree | cecde49eece8edc80e334f74895e0861a56c0fdb /src/chain.cc | |
parent | 74e569e220bee08d6c9eda59b5e4021748344994 (diff) | |
download | fork-ledger-d58797e98c82ced16fbc0a213fd104fb72a9de08.tar.gz fork-ledger-d58797e98c82ced16fbc0a213fd104fb72a9de08.tar.bz2 fork-ledger-d58797e98c82ced16fbc0a213fd104fb72a9de08.zip |
The -B, -G, -V reports now show rounding amounts
This way, if the running total is off by a penny or two due to rounding
of one or more commodities in the account, the user will see it.
This commit also reorganizes the testing code a bit, which I did after
adding the ninth test series (ConfirmTests), to validate the new
rounding code.
Diffstat (limited to 'src/chain.cc')
-rw-r--r-- | src/chain.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/chain.cc b/src/chain.cc index 0ad1709f..d33742a5 100644 --- a/src/chain.cc +++ b/src/chain.cc @@ -79,9 +79,12 @@ post_handler_ptr chain_post_handlers(report_t& report, // the running total unpredictably. if (report.HANDLED(revalued)) handler.reset(new changed_value_posts - (handler, report.HANDLED(revalued_total_) ? + (handler, + report.HANDLER(display_amount_).expr, + report.HANDLED(revalued_total_) ? report.HANDLER(revalued_total_).expr : report.HANDLER(display_total_).expr, + report.HANDLER(display_total_).expr, report, report.HANDLED(revalued_only))); // calc_posts computes the running total. When this appears will |