diff options
author | John Wiegley <johnw@newartisans.com> | 2009-10-26 17:23:46 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-10-26 17:23:46 -0400 |
commit | d85a415bc5119d4271ca7355fe3e0ce3951c0d23 (patch) | |
tree | fdb05a205e3ed74bd81fa502a99edb8d3a2588c8 /src/output.cc | |
parent | 1ed22646f1349e2753ed1194f22dd9f028e8b638 (diff) | |
download | fork-ledger-d85a415bc5119d4271ca7355fe3e0ce3951c0d23.tar.gz fork-ledger-d85a415bc5119d4271ca7355fe3e0ce3951c0d23.tar.bz2 fork-ledger-d85a415bc5119d4271ca7355fe3e0ce3951c0d23.zip |
In the balance report, don't output any account twice
Diffstat (limited to 'src/output.cc')
-rw-r--r-- | src/output.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/output.cc b/src/output.cc index 92824714..fead2326 100644 --- a/src/output.cc +++ b/src/output.cc @@ -138,7 +138,8 @@ format_accounts::format_accounts(report_t& _report, std::size_t format_accounts::post_account(account_t& account) { - if (account.xdata().has_flags(ACCOUNT_EXT_TO_DISPLAY)) { + if (account.xdata().has_flags(ACCOUNT_EXT_TO_DISPLAY) && + ! account.xdata().has_flags(ACCOUNT_EXT_DISPLAYED)) { if (account.parent && account.parent->xdata().has_flags(ACCOUNT_EXT_TO_DISPLAY) && ! account.parent->xdata().has_flags(ACCOUNT_EXT_DISPLAYED)) |