summaryrefslogtreecommitdiff
path: root/register.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-20 02:13:48 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:28 -0400
commit539370ff1b37772e9f11439f652ffd3583beeedb (patch)
tree69e8b0a0aee571d7335eae4c6693829745de1484 /register.cc
parent0a6b5726ec3bf402a953ea8a03b98ecbf4b90b0c (diff)
downloadfork-ledger-539370ff1b37772e9f11439f652ffd3583beeedb.tar.gz
fork-ledger-539370ff1b37772e9f11439f652ffd3583beeedb.tar.bz2
fork-ledger-539370ff1b37772e9f11439f652ffd3583beeedb.zip
More refactoring
Diffstat (limited to 'register.cc')
-rw-r--r--register.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/register.cc b/register.cc
index 3e261522..3e75eb13 100644
--- a/register.cc
+++ b/register.cc
@@ -24,7 +24,15 @@ void register_command::print_document(std::ostream& out,
transaction_t * xact = xact_node->transaction;
assert(xact);
- std::cout << xact->account->fullname() << std::endl;
+ std::cout << xact->entry->date() << ' '
+ << std::setw(21) << std::left
+ << abbreviate(xact->entry->payee, 21) << ' '
+ << std::setw(21) << std::left
+ << abbreviate(xact->account->fullname(), 21,
+ ABBREVIATE, true) << ' '
+ << std::setw(12) << std::right
+ << xact->amount
+ << std::endl;
}
}