diff options
author | John Wiegley <johnw@newartisans.com> | 2010-05-23 15:24:02 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-05-23 15:45:51 -0600 |
commit | 7bddcd676bc53c6caad7dd283be362fcd53d5721 (patch) | |
tree | d76464891f208aa9e97e21e3ee89360964fe4046 /src/report.cc | |
parent | 847a5e4e73afd1c959f7211ceb67d6b9ab0f95d0 (diff) | |
download | fork-ledger-7bddcd676bc53c6caad7dd283be362fcd53d5721.tar.gz fork-ledger-7bddcd676bc53c6caad7dd283be362fcd53d5721.tar.bz2 fork-ledger-7bddcd676bc53c6caad7dd283be362fcd53d5721.zip |
Added --rounding option, which is off by default
The purpose of this option is to add special "<Rounding>" postings, to
ensure that a regiter's running total is *always* the sum of its
postings. Within --rounding, these adjustment postings are missing,
which was the behavior in Ledger 2.x. It can be orders of magnitude
slower to turn it on for large reports with many commodities.
Diffstat (limited to 'src/report.cc')
-rw-r--r-- | src/report.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/report.cc b/src/report.cc index dfdc77cc..486c0fdf 100644 --- a/src/report.cc +++ b/src/report.cc @@ -954,6 +954,7 @@ option_t<report_t> * report_t::lookup_option(const char * p) else OPT(revalued); else OPT(revalued_only); else OPT(revalued_total_); + else OPT(rounding); break; case 's': OPT(sort_); |