summaryrefslogtreecommitdiff
path: root/balance.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2003-09-29 07:19:54 +0000
committerJohn Wiegley <johnw@newartisans.com>2003-09-29 07:19:54 +0000
commit3667f06594a99dd6f0080747732e7eff639343b1 (patch)
tree246eb9daa91831e19ff43844325f7e38797cde7b /balance.cc
parentfaaed980ea63fcac773859680a68a82e96c7fdc8 (diff)
downloadfork-ledger-3667f06594a99dd6f0080747732e7eff639343b1.tar.gz
fork-ledger-3667f06594a99dd6f0080747732e7eff639343b1.tar.bz2
fork-ledger-3667f06594a99dd6f0080747732e7eff639343b1.zip
*** empty log message ***
Diffstat (limited to 'balance.cc')
-rw-r--r--balance.cc15
1 files changed, 7 insertions, 8 deletions
diff --git a/balance.cc b/balance.cc
index 2c9569a4..b3ecf593 100644
--- a/balance.cc
+++ b/balance.cc
@@ -43,7 +43,7 @@ void report_balances(std::ostream& out, std::vector<entry *>& ledger,
std::cout.width(10);
std::cout << std::right << "Cleared" << std::endl;
- for (std::map<const std::string, account *>::iterator i = accounts.begin();
+ for (accounts_iterator i = accounts.begin();
i != accounts.end();
i++) {
if (! show_empty && ! (*i).second->future)
@@ -108,13 +108,12 @@ void report_balances(std::ostream& out, std::vector<entry *>& ledger,
#if 0
if (regexps.empty()) {
#endif
- // jww (2003-09-29): Let `totals' be streamed
- future_balance.print(std::cout);
- std::cout << " ";
- current_balance.print(std::cout);
- std::cout << " ";
- cleared_balance.print(std::cout);
- std::cout << std::endl;
+ std::cout.width(10);
+ std::cout << std::right << future_balance << " ";
+ std::cout.width(10);
+ std::cout << std::right << current_balance << " ";
+ std::cout.width(10);
+ std::cout << std::right << cleared_balance << std::endl;
#if 0
}
#endif