X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fprocess%2Fcust_refund.cgi;h=a579a02d897efb6d14c44ef52b25ecaf69dda046;hb=c8cccb4a92adceb943c635fe62dad0d034462ce0;hp=3a58d9aa50916046f72a57a2930bf054ccaea345;hpb=6af1b1bfa25e5ececef5e0dcd38b55917121cee2;p=freeside.git diff --git a/httemplate/edit/process/cust_refund.cgi b/httemplate/edit/process/cust_refund.cgi index 3a58d9aa5..a579a02d8 100755 --- a/httemplate/edit/process/cust_refund.cgi +++ b/httemplate/edit/process/cust_refund.cgi @@ -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"); %} -% -% -