From ef175582574b8ec5cb6fe24d11b2643647c7e4fc Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Sun, 25 Jan 2015 18:38:49 -0800 Subject: [PATCH] due_date substitute for message template, $29881 --- FS/FS/msg_template.pm | 1 + httemplate/edit/msg_template.html | 3 +++ 2 files changed, 4 insertions(+) diff --git a/FS/FS/msg_template.pm b/FS/FS/msg_template.pm index bc21e653b..ef30946be 100644 --- a/FS/FS/msg_template.pm +++ b/FS/FS/msg_template.pm @@ -597,6 +597,7 @@ sub substitutions { _date _date_pretty due_date + due_date2str )], #XXX not really thinking about cust_bill substitutions quite yet diff --git a/httemplate/edit/msg_template.html b/httemplate/edit/msg_template.html index 6c9d2f414..c6b2a7d8d 100644 --- a/httemplate/edit/msg_template.html +++ b/httemplate/edit/msg_template.html @@ -242,6 +242,9 @@ my %substitutions = ( ], 'cust_bill' => [ '$invnum' => 'Invoice#', + '$_date_pretty' => 'Invoice date', + '$due_date' => 'Invoice due date (timestamp)', + '$due_date2str' => 'Invoice due date (human readable)', ], 'cust_pkg' => [ '$pkgnum' => 'Package#', -- 2.11.0