From 28fd597fb26a3e4064e63f0cf9a23e06a273fb6e Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Thu, 8 Nov 2018 08:48:24 -0500 Subject: RT# 74453 - V3 fixes for backport --- httemplate/edit/cust_refund.cgi | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'httemplate/edit/cust_refund.cgi') diff --git a/httemplate/edit/cust_refund.cgi b/httemplate/edit/cust_refund.cgi index 39584c8eb..c79c39a80 100755 --- a/httemplate/edit/cust_refund.cgi +++ b/httemplate/edit/cust_refund.cgi @@ -46,7 +46,6 @@ Method<% $payby %> # <% $paymask %> - % unless ( $paydate || $cust_pay->payby ne 'CARD' ) { # possibly other reasons: i.e. card has since expired @@ -160,7 +159,7 @@ my $batch = $cgi->param('batch'); die "access denied" unless $FS::CurrentUser::CurrentUser->refund_access_right($payby); -my( $paynum, $cust_pay, $batchnum, $cust_payby ) = ( '', '', '', '' ); +my( $paynum, $cust_pay, $batchnum ) = ( '', '', '' ); if ( $cgi->param('paynum') =~ /^(\d+)$/ ) { $paynum = $1; $cust_pay = qsearchs('cust_pay', { paynum=>$paynum } ) @@ -173,12 +172,6 @@ if ( $cgi->param('paynum') =~ /^(\d+)$/ ) { } else { $custnum = $cust_pay->custnum; } - # get custpayby - die "Can not find payby record!" - unless $cust_payby = qsearchs( - 'cust_payby', { paymask => $cust_pay->paymask, custnum => $custnum } - ); - } die "no custnum or paynum specified!" unless $custnum; -- cgit v1.2.1