diff options
author | John Wiegley <johnw@newartisans.com> | 2004-04-10 09:33:42 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-04-10 09:33:42 +0000 |
commit | 46a3f91c4eee7637bf74c464f2a6daa33fcf0dff (patch) | |
tree | f39706a7273a1f3723a0f7d766e75fc11cefa9b3 | |
parent | fa61061bc2d0a4bd6490c512482a7abd41b6a62d (diff) | |
download | ledger-46a3f91c4eee7637bf74c464f2a6daa33fcf0dff.tar.gz ledger-46a3f91c4eee7637bf74c464f2a6daa33fcf0dff.tar.bz2 ledger-46a3f91c4eee7637bf74c464f2a6daa33fcf0dff.zip |
*** empty log message ***
-rw-r--r-- | reports.cc | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -231,8 +231,10 @@ void print_register(const std::string& acct_name, std::ostream& out, balance.credit(street); // If there are two transactions, use the one which does not - // refer to this account. If there are more than two, we will - // just have to print all of the splits, like gnucash does. + // refer to this account. If there are more than two, print + // "<Splits...>", unless the -s option is being used (show + // children), in which case print all of the splits, like + // gnucash does. transaction * xact; if ((*i)->xacts.size() == 2) { @@ -259,7 +261,7 @@ void print_register(const std::string& acct_name, std::ostream& out, out << std::endl; - if (! show_subtotals || xact != *x) + if (! show_children || xact != *x) continue; for (std::list<transaction *>::iterator y = (*i)->xacts.begin(); @@ -268,7 +270,7 @@ void print_register(const std::string& acct_name, std::ostream& out, if (*x == *y) continue; - out << " "; + out << " "; out.width(22); out << std::left << truncated((*y)->acct_as_str(), 22) << " "; |