projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
proper use of date_format config for international date formats, RT#7009
[freeside.git]
/
httemplate
/
view
/
cust_main
/
payment_history
/
voided_payment.html
diff --git
a/httemplate/view/cust_main/payment_history/voided_payment.html
b/httemplate/view/cust_main/payment_history/voided_payment.html
index
6103727
..
be68ff0
100644
(file)
--- a/
httemplate/view/cust_main/payment_history/voided_payment.html
+++ b/
httemplate/view/cust_main/payment_history/voided_payment.html
@@
-1,10
+1,12
@@
<DEL>Payment <% $info %></DEL>
<DEL>Payment <% $info %></DEL>
-<I>voided <% time2str(
"%D"
, $cust_pay_void->void_date) %>
+<I>voided <% time2str(
$date_format
, $cust_pay_void->void_date) %>
by <% $cust_pay_void->otaker %></I><% $unvoid %>
<%init>
my( $cust_pay_void, %opt ) = @_;
by <% $cust_pay_void->otaker %></I><% $unvoid %>
<%init>
my( $cust_pay_void, %opt ) = @_;
+my $date_format = $opt{'date_format'} || '%m/%d/%Y';
+
my $curuser = $FS::CurrentUser::CurrentUser;
my $payby = $cust_pay_void->payby;
my $curuser = $FS::CurrentUser::CurrentUser;
my $payby = $cust_pay_void->payby;