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
/
credit.html
diff --git
a/httemplate/view/cust_main/payment_history/credit.html
b/httemplate/view/cust_main/payment_history/credit.html
index
058c6f5
..
fa5838e
100644
(file)
--- a/
httemplate/view/cust_main/payment_history/credit.html
+++ b/
httemplate/view/cust_main/payment_history/credit.html
@@
-4,6
+4,8
@@
by <% $cust_credit->otaker %><% "$reason$desc$apply$delete$unapply" %>
my( $cust_credit, %opt ) = @_;
my( $cust_credit, %opt ) = @_;
+my $date_format = $opt{'date_format'} || '%m/%d/%Y';
+
my $curuser = $FS::CurrentUser::CurrentUser;
my @cust_credit_bill = $cust_credit->cust_credit_bill;
my $curuser = $FS::CurrentUser::CurrentUser;
my @cust_credit_bill = $cust_credit->cust_credit_bill;
@@
-56,7
+58,7
@@
if ( scalar(@cust_credit_bill) == 0
&& scalar(@cust_credit_refund) == 1
&& $cust_credit->credited == 0 ) {
#applied to one refund
&& scalar(@cust_credit_refund) == 1
&& $cust_credit->credited == 0 ) {
#applied to one refund
- $desc .= ' refunded on '. time2str(
"%D"
, $cust_credit_refund[0]->_date);
+ $desc .= ' refunded on '. time2str(
$date_format
, $cust_credit_refund[0]->_date);
} else {
#complicated
$desc .= '<BR>';
} else {
#complicated
$desc .= '<BR>';
@@
-67,11
+69,11
@@
if ( scalar(@cust_credit_bill) == 0
'$'. $app->amount.
' '. $app->applied_to_invoice.
'<BR>';
'$'. $app->amount.
' '. $app->applied_to_invoice.
'<BR>';
- #' on '. time2str(
"%D"
, $app->_date).
+ #' on '. time2str(
$date_format
, $app->_date).
} elsif ( $app->isa('FS::cust_credit_refund') ) {
$desc .= ' '.
'$'. $app->amount.
} elsif ( $app->isa('FS::cust_credit_refund') ) {
$desc .= ' '.
'$'. $app->amount.
- ' refunded on '. time2str(
"%D"
, $app->_date).
+ ' refunded on '. time2str(
$date_format
, $app->_date).
'<BR>';
} else {
die "$app is not a FS::cust_credit_bill or a FS::cust_credit_refund";
'<BR>';
} else {
die "$app is not a FS::cust_credit_bill or a FS::cust_credit_refund";