diff options
author | jeff <jeff> | 2006-08-26 23:15:14 +0000 |
---|---|---|
committer | jeff <jeff> | 2006-08-26 23:15:14 +0000 |
commit | 6af1b1bfa25e5ececef5e0dcd38b55917121cee2 (patch) | |
tree | cb81deb99bee814a037fd866fa10981ae459472f /httemplate/edit/process/cust_refund.cgi | |
parent | 62ee3858ef853cb2b4f1a6cd98f8a608e7d11d7d (diff) |
batch refactor continued
Diffstat (limited to 'httemplate/edit/process/cust_refund.cgi')
-rwxr-xr-x | httemplate/edit/process/cust_refund.cgi | 8 |
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"; |