From d580079df892c30d023b3211d6c4611c17b11f8f Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 11 Jun 2010 15:53:51 -0400 Subject: Scrub account totals before applying --percent --- src/report.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/report.h b/src/report.h index b893772e..9e70551f 100644 --- a/src/report.h +++ b/src/report.h @@ -739,7 +739,8 @@ public: OPTION_(report_t, percent, DO() { // -% parent->HANDLER(total_) .set_expr(string("--percent"), - "((is_account&parent&parent.total)?percent(total, parent.total):0"); + "((is_account&parent&parent.total)?" + " percent(scrub(total), scrub(parent.total)):0"); }); OPTION__ -- cgit v1.2.3