[freeside-commits] freeside/httemplate/edit cust_refund.cgi, 1.4, 1.5
Jeff Finucane,420,,
jeff at wavetail.420.am
Fri Jun 15 11:44:19 PDT 2007
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail:/tmp/cvs-serv4337/httemplate/edit
Modified Files:
cust_refund.cgi
Log Message:
paydate option for realtime_refund_bop and UI entry for cust_pay records without it (#1662 UI)
Index: cust_refund.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/cust_refund.cgi,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- cust_refund.cgi 14 Dec 2006 06:00:46 -0000 1.4
+++ cust_refund.cgi 15 Jun 2007 18:44:17 -0000 1.5
@@ -53,6 +53,11 @@
% #false laziness w/FS/FS/cust_pay.pm
% my $payby = $cust_pay->payby;
% my $paymask = $cust_pay->paymask;
+% my $paydate = $cust_pay->paydate;
+% if ( $cgi->param('error') ) {
+% $paydate = $cgi->param('exp_year'). '-'. $cgi->param('exp_month'). '-01';
+% $paydate = '' unless ($paydate =~ /^\d{2,4}-\d{1,2}-01$'/);
+% }
% $payby =~ s/^BILL$/Check/ if $paymask;
% $payby =~ s/^CHEK$/Electronic check/;
%
@@ -73,6 +78,19 @@
<TR>
<TD ALIGN="right">Method</TD><TD BGCOLOR="#ffffff"><% ucfirst(lc($payby)) %> # <% $paymask %></TD>
</TR>
+
+% unless ( $paydate ) { # possibly other reasons: i.e. card has since expired
+ <TR>
+ <TD ALIGN="right">Expiration</TD><TD BGCOLOR="#ffffff">
+ <% include( '/elements/select-month_year.html',
+ 'prefix' => 'exp',
+ 'selected_date' => $paydate,
+ 'empty_option' => !$paydate,
+ ) %>
+ </TD>
+ </TR>
+% }
+
%
% #false laziness w/FS/FS/cust_main::realtime_refund_bop
% if ( $cust_pay->paybatch =~ /^(\w+):(\w+)(:(\w+))?$/ ) {
More information about the freeside-commits
mailing list