diff options
-rw-r--r-- | src/output.cc | 11 | ||||
-rw-r--r-- | test/baseline/opt-account.test | 3 |
2 files changed, 4 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); diff --git a/test/baseline/opt-account.test b/test/baseline/opt-account.test index 5ac84b45..d89ea52d 100644 --- a/test/baseline/opt-account.test +++ b/test/baseline/opt-account.test @@ -8,5 +8,8 @@ bal --account=Master 0.350 VMMXX Master 0.350 VMMXX Assets:Investments:Vanguard:VMMXX $-0.35 Income:Dividends:Vanguard:VMMXX +-------------------- + $-0.35 + 0.350 VMMXX >>>2 === 0 |