summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/cust_refund.cgi
diff options
context:
space:
mode:
authorjeff <jeff>2006-08-26 23:15:14 +0000
committerjeff <jeff>2006-08-26 23:15:14 +0000
commit6af1b1bfa25e5ececef5e0dcd38b55917121cee2 (patch)
treecb81deb99bee814a037fd866fa10981ae459472f /httemplate/edit/process/cust_refund.cgi
parent62ee3858ef853cb2b4f1a6cd98f8a608e7d11d7d (diff)
batch refactor continued
Diffstat (limited to 'httemplate/edit/process/cust_refund.cgi')
-rwxr-xr-xhttemplate/edit/process/cust_refund.cgi8
1 files changed, 2 insertions, 6 deletions
diff --git a/httemplate/edit/process/cust_refund.cgi b/httemplate/edit/process/cust_refund.cgi
index fadfffb62..3a58d9aa5 100755
--- a/httemplate/edit/process/cust_refund.cgi
+++ b/httemplate/edit/process/cust_refund.cgi
@@ -1,4 +1,4 @@
-%
+ %
%
%$cgi->param('custnum') =~ /^(\d*)$/ or die "Illegal custnum!";
%my $custnum = $1;
@@ -7,11 +7,7 @@
%
%my $error = '';
%if ( $cgi->param('payby') =~ /^(CARD|CHEK)$/ ) {
-% my %payby2bop = (
-% 'CARD' => 'CC',
-% 'CHEK' => 'ECHECK',
-% );
-% my $bop = $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";