From 7bddcd676bc53c6caad7dd283be362fcd53d5721 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 23 May 2010 15:24:02 -0600 Subject: Added --rounding option, which is off by default The purpose of this option is to add special "" 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. --- src/report.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/report.h') diff --git a/src/report.h b/src/report.h index aff4af91..aa72832c 100644 --- a/src/report.h +++ b/src/report.h @@ -295,6 +295,7 @@ public: HANDLER(revalued).report(out); HANDLER(revalued_only).report(out); HANDLER(revalued_total_).report(out); + HANDLER(rounding).report(out); HANDLER(seed_).report(out); HANDLER(sort_).report(out); HANDLER(sort_all_).report(out); @@ -818,6 +819,7 @@ public: set_expr(args[0].to_string(), args[1].to_string()); }); + OPTION(report_t, rounding); OPTION(report_t, seed_); OPTION_(report_t, sort_, DO_(args) { // -S -- cgit v1.2.3