summaryrefslogtreecommitdiff
path: root/src/output.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-03-15 04:14:03 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-03-15 04:14:03 -0400
commitd0963ece02bb76599f9a5166ab2d8b34ee3e5d68 (patch)
tree944aa73eed313878bb798b5b9c5f8ad7822c4204 /src/output.cc
parentdbcaa35d4b19175bdcc2e93e4e91e1a7444a75f3 (diff)
downloadfork-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.cc11
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);