diff options
author | Christopher Burger <burgerc@freeside.biz> | 2019-03-15 11:29:50 -0400 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2019-03-15 11:29:50 -0400 |
commit | 38f5c59a6a3b92881c0f60bc8dccc9acd0feef41 (patch) | |
tree | 42ba5cacaead27b0bf05fadaa0fc5a664c79d9dd /httemplate/edit | |
parent | bb201b08e3f48784cd77979dd4e31e866aa4f15d (diff) |
RT# 83044 - fixed cc refund issues
Diffstat (limited to 'httemplate/edit')
-rwxr-xr-x | httemplate/edit/process/cust_refund.cgi | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/httemplate/edit/process/cust_refund.cgi b/httemplate/edit/process/cust_refund.cgi index 25f6e00a1..f248d54b7 100755 --- a/httemplate/edit/process/cust_refund.cgi +++ b/httemplate/edit/process/cust_refund.cgi @@ -55,7 +55,7 @@ if ( $error ) { 'CHEK' => 'electronic check (ACH)', ); -my( $cust_pay, $cust_payby, $payinfo, $paycvv, $month, $year, $payname ); +my( $cust_pay, $cust_payby, $payinfo, $paycvv, $month, $year, $payname, $paycardtype ); my $paymask = ''; ## get cust pay info if paynum exists @@ -89,6 +89,7 @@ if ( (my $custpaybynum = scalar($cgi->param('custpaybynum'))) > 0 ) { } elsif ( $cgi->param('paynum') > 0) { $payinfo = $cust_pay->payinfo; + $paycardtype = $cust_pay->paycardtype; $payname = $cust_pay->payname; } else { @@ -235,6 +236,10 @@ if ( (my $custpaybynum = scalar($cgi->param('custpaybynum'))) > 0 ) { $_, scalar($cgi->param($_)) } fields('cust_refund'); + $hash{'payinfo'} = $payinfo; + $hash{'paymask'} = $paymask; + $hash{'paycardtype'} = $paycardtype; + ## unapply payment before creating refund. while ( $cust_pay && $cust_pay->unapplied < $refund ) { my @cust_bill_pay = $cust_pay->cust_bill_pay; |