[freeside-commits] freeside/httemplate/edit/process cust_refund.cgi, 1.4, 1.5

Ivan,,, ivan at wavetail.420.am
Tue Sep 5 09:27:21 PDT 2006


Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail:/tmp/cvs-serv14398

Modified Files:
	cust_refund.cgi 
Log Message:
fix FS::payby::payby2bop usage

Index: cust_refund.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/cust_refund.cgi,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- cust_refund.cgi	26 Aug 2006 23:15:13 -0000	1.4
+++ cust_refund.cgi	5 Sep 2006 16:27:19 -0000	1.5
@@ -1,5 +1,3 @@
-			%
-%
 %$cgi->param('custnum') =~ /^(\d*)$/ or die "Illegal custnum!";
 %my $custnum = $1;
 %my $cust_main = qsearchs('cust_main', { 'custnum' => $custnum } )
@@ -7,7 +5,7 @@
 %
 %my $error = '';
 %if ( $cgi->param('payby') =~ /^(CARD|CHEK)$/ ) { 
-%  my $bop = FS::payby::$payby2bop{$1};
+%  my $bop = FS::payby::payby2bop->{$1};
 %  $cgi->param('refund') =~ /^(\d*)(\.\d{2})?$/
 %    or die "illegal refund amount ". $cgi->param('refund');
 %  my $refund = "$1$2";
@@ -34,6 +32,3 @@
 %} else {
 %  print $cgi->redirect(popurl(3). "view/cust_main.cgi?$custnum");
 %}
-%
-%
-



More information about the freeside-commits mailing list