summaryrefslogtreecommitdiff
path: root/src/report.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-25 21:27:56 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-25 21:27:56 -0400
commit9dadaebfeb461ba795124281018d0f7eac200cf4 (patch)
tree941243868b1dcacd68cbd52a2f96e40bf70a5d3b /src/report.h
parentf35bc939c96c3a3bf09c5881d638b5ba60449c03 (diff)
parente696bfd913a10edd19f9e35eb1aee2c97b11e7f6 (diff)
downloadfork-ledger-9dadaebfeb461ba795124281018d0f7eac200cf4.tar.gz
fork-ledger-9dadaebfeb461ba795124281018d0f7eac200cf4.tar.bz2
fork-ledger-9dadaebfeb461ba795124281018d0f7eac200cf4.zip
Merge branch 'next'
Diffstat (limited to 'src/report.h')
-rw-r--r--src/report.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/report.h b/src/report.h
index 71dc4ca2..5921a154 100644
--- a/src/report.h
+++ b/src/report.h
@@ -218,6 +218,7 @@ public:
HANDLER(current).report(out);
HANDLER(daily).report(out);
HANDLER(date_format_).report(out);
+ HANDLER(datetime_format_).report(out);
HANDLER(depth_).report(out);
HANDLER(deviation).report(out);
HANDLER(display_).report(out);
@@ -412,10 +413,8 @@ public:
parent->HANDLER(period_).on(string("--daily"), "daily");
});
- OPTION__(report_t, date_format_, // -y
- CTOR(report_t, date_format_) {
- on(none, "%y-%b-%d");
- });
+ OPTION(report_t, date_format_);
+ OPTION(report_t, datetime_format_);
OPTION_(report_t, depth_, DO_(scope) {
interactive_t args(scope, "sl");
@@ -633,9 +632,9 @@ public:
OPTION__(report_t, print_format_, CTOR(report_t, print_format_) {
on(none,
- "%(format_date(xact.date, \"%Y/%m/%d\"))"
+ "%(xact.date)"
"%(!effective & xact.effective_date ?"
- " \"=\" + format_date(xact.effective_date, \"%Y/%m/%d\") : \"\")"
+ " \"=\" + xact.effective_date : \"\")"
"%(xact.cleared ? \" *\" : (xact.pending ? \" !\" : \"\"))"
"%(code ? \" (\" + code + \")\" :"
" \"\") %(payee)%(xact.comment)\n"
@@ -673,7 +672,8 @@ public:
OPTION__(report_t, register_format_, CTOR(report_t, register_format_) {
on(none,
- "%(ansify_if(justify(date, date_width), green if color & date > today))"
+ "%(ansify_if(justify(format_date(date), date_width), green "
+ " if color & date > today))"
" %(ansify_if(justify(truncated(payee, payee_width), payee_width), "
" bold if color & !cleared))"
" %(ansify_if(justify(truncated(account, account_width, abbrev_len), "