summaryrefslogtreecommitdiff
path: root/src/report.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-27 03:49:59 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-27 03:49:59 -0400
commit645e43ef75b1af78ef6a4013684d76fd7d6e7118 (patch)
treecd68d1857a366cc9662c8be7c838bb9414a6d0a7 /src/report.h
parentf1795e628b0027aed2dc344c757167887c337bc1 (diff)
downloadfork-ledger-645e43ef75b1af78ef6a4013684d76fd7d6e7118.tar.gz
fork-ledger-645e43ef75b1af78ef6a4013684d76fd7d6e7118.tar.bz2
fork-ledger-645e43ef75b1af78ef6a4013684d76fd7d6e7118.zip
The print command now prints xact's effective date
Diffstat (limited to 'src/report.h')
-rw-r--r--src/report.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/report.h b/src/report.h
index f92cb236..74a49052 100644
--- a/src/report.h
+++ b/src/report.h
@@ -510,6 +510,8 @@ public:
OPTION__(report_t, print_format_, CTOR(report_t, print_format_) {
on("%(format_date(xact.date, \"%Y/%m/%d\"))"
+ "%(!effective & xact.effective_date ?"
+ " \"=\" + format_date(xact.effective_date, \"%Y/%m/%d\") : \"\")"
"%(xact.cleared ? \" *\" : (xact.pending ? \" !\" : \"\"))"
"%(code ? \" (\" + code + \")\" : \"\") %(payee)%(xact.comment | \"\")\n"
" %(xact.uncleared ? (cleared ? \"* \" : (pending ? \"! \" : \"\")) : \"\")"