summaryrefslogtreecommitdiff
path: root/src/print.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/print.cc')
-rw-r--r--src/print.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/print.cc b/src/print.cc
index e190ad31..eb102a87 100644
--- a/src/print.cc
+++ b/src/print.cc
@@ -71,8 +71,6 @@ namespace {
void print_xact(report_t& report, std::ostream& out, xact_t& xact)
{
- // jww (2010-03-07): Also add support for --raw
-
out << format_date(item_t::use_effective_date ?
xact.date() : xact.actual_date(),
FMT_WRITTEN);
@@ -80,7 +78,6 @@ namespace {
out << '=' << format_date(*xact.effective_date(), FMT_WRITTEN);
out << ' ';
- // jww (2010-03-06): Output posting state, if different
out << (xact.state() == item_t::CLEARED ? "* " :
(xact.state() == item_t::PENDING ? "! " : ""));
@@ -112,10 +109,13 @@ namespace {
continue;
out << " ";
- // jww (2010-03-06): Output posting state, if different
std::ostringstream buf;
+ if (xact.state() == item_t::UNCLEARED)
+ buf << (post->state() == item_t::CLEARED ? "* " :
+ (post->state() == item_t::PENDING ? "! " : ""));
+
if (post->has_flags(POST_VIRTUAL)) {
if (post->has_flags(POST_MUST_BALANCE))
buf << '[';