diff options
| author | Christopher Burger <burgerc@freeside.biz> | 2018-11-08 08:48:24 -0500 |
|---|---|---|
| committer | Christopher Burger <burgerc@freeside.biz> | 2018-11-08 08:48:24 -0500 |
| commit | 28fd597fb26a3e4064e63f0cf9a23e06a273fb6e (patch) | |
| tree | 3ad5d811c808a4170c856b1805fc3f1e9d5bb878 /httemplate/edit/cust_refund.cgi | |
| parent | eadb3075ac883f761c959a6dd60a358b40f1e499 (diff) | |
RT# 74453 - V3 fixes for backport
Diffstat (limited to 'httemplate/edit/cust_refund.cgi')
| -rwxr-xr-x | httemplate/edit/cust_refund.cgi | 9 |
1 files changed, 1 insertions, 8 deletions
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 @@ <TR> <TD ALIGN="right">Method</TD><TD BGCOLOR="#ffffff"><% $payby %> # <% $paymask %></TD> - <INPUT TYPE="hidden" NAME="custpaybynum" VALUE="<% $cust_payby->custpaybynum %>"> </TR> % 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; |
