summaryrefslogtreecommitdiff
path: root/src/report.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-11 15:53:51 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-11 17:02:25 -0400
commitd580079df892c30d023b3211d6c4611c17b11f8f (patch)
treeb2e50d53b01cf426f735a1d78aab9a0d5928df0d /src/report.h
parent31d8d41d0201e91b8cb2557c691df360ba982cbd (diff)
downloadfork-ledger-d580079df892c30d023b3211d6c4611c17b11f8f.tar.gz
fork-ledger-d580079df892c30d023b3211d6c4611c17b11f8f.tar.bz2
fork-ledger-d580079df892c30d023b3211d6c4611c17b11f8f.zip
Scrub account totals before applying --percent
Diffstat (limited to 'src/report.h')
-rw-r--r--src/report.h3
1 files changed, 2 insertions, 1 deletions
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__