X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_refund.cgi;h=59417b4c4806f3cef7c153808072b5dc1f2dbbb3;hb=20f38e4c256094bd938b732950e8f93319f851a5;hp=94c0993d77be108c47dbe13d4df3f4fb3abe4387;hpb=46a7257273fdae101658c8a1ee74f654ca0876b5;p=freeside.git diff --git a/httemplate/edit/cust_refund.cgi b/httemplate/edit/cust_refund.cgi index 94c0993d7..59417b4c4 100755 --- a/httemplate/edit/cust_refund.cgi +++ b/httemplate/edit/cust_refund.cgi @@ -41,14 +41,14 @@ - Date<% time2str("%D",$cust_pay->_date) %> + Date<% time2str($date_format, $cust_pay->_date) %> Method<% $payby %> # <% $paymask %> -% unless ( $paydate ) { # possibly other reasons: i.e. card has since expired +% unless ( $paydate || $cust_pay->payby ne 'CARD' ) { # possibly other reasons: i.e. card has since expired Expiration <% include( '/elements/select-month_year.html', @@ -93,7 +93,7 @@ Date - <% time2str("%D",$_date) %> + <% time2str($date_format, $_date) %> @@ -134,6 +134,8 @@ die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Refund payment'); my $conf = new FS::Conf; +my $date_format = $conf->config('date_format') || '%m/%d/%Y'; + my $custnum = $cgi->param('custnum'); my $refund = $cgi->param('refund'); my $payby = $cgi->param('payby');