diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-11 15:53:51 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-11 17:02:25 -0400 |
commit | d580079df892c30d023b3211d6c4611c17b11f8f (patch) | |
tree | b2e50d53b01cf426f735a1d78aab9a0d5928df0d /src/report.h | |
parent | 31d8d41d0201e91b8cb2557c691df360ba982cbd (diff) | |
download | fork-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.h | 3 |
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__ |