From 7b777a5bf7fcdb0f966e3789e00f646febedc60c Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Sun, 25 Jan 2015 18:38:47 -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 5dbd591a8..65890e125 100644 --- a/FS/FS/msg_template.pm +++ b/FS/FS/msg_template.pm @@ -598,6 +598,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 aac4cd4fd..7f3824127 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