summaryrefslogtreecommitdiff
path: root/register.cc
diff options
context:
space:
mode:
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;
}
}