diff options
author | John Wiegley <johnw@newartisans.com> | 2009-03-15 04:14:03 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-03-15 04:14:03 -0400 |
commit | d0963ece02bb76599f9a5166ab2d8b34ee3e5d68 (patch) | |
tree | 944aa73eed313878bb798b5b9c5f8ad7822c4204 /src/output.cc | |
parent | dbcaa35d4b19175bdcc2e93e4e91e1a7444a75f3 (diff) | |
download | fork-ledger-d0963ece02bb76599f9a5166ab2d8b34ee3e5d68.tar.gz fork-ledger-d0963ece02bb76599f9a5166ab2d8b34ee3e5d68.tar.bz2 fork-ledger-d0963ece02bb76599f9a5166ab2d8b34ee3e5d68.zip |
If a balance report is multi-lined, print a total
Diffstat (limited to 'src/output.cc')
-rw-r--r-- | src/output.cc | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/output.cc b/src/output.cc index 4fd3058a..76d811a3 100644 --- a/src/output.cc +++ b/src/output.cc @@ -197,19 +197,10 @@ void format_accounts::flush() foreach (account_t * account, posted_accounts) { post_account(*account); - if (report.HANDLED(flat) && account->has_flags(ACCOUNT_EXT_DISPLAYED)) + if (account->has_flags(ACCOUNT_EXT_DISPLAYED)) top_displayed++; } - if (! report.HANDLED(flat)) { - foreach (accounts_map::value_type pair, report.session.master->accounts) { - if (pair.second->has_flags(ACCOUNT_EXT_DISPLAYED) || - pair.second->children_with_flags(ACCOUNT_EXT_DISPLAYED)) { - top_displayed++; - } - } - } - if (! report.HANDLED(no_total) && top_displayed > 1 && report.session.master->family_total()) { bind_scope_t bound_scope(report, *report.session.master); |