From cfb19dcc27824b46d9f74a7e01b16328c8e66f7f Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Mon, 9 Jul 2018 08:27:53 -0400 Subject: [PATCH] RT# 74435 - Fixed error with refund link on payment history page not allowing batch refund when batch payment was made. --- FS/FS/cust_main/Billing_Realtime.pm | 2 +- httemplate/edit/cust_refund.cgi | 42 ++++++++++++++++++++++++++------- httemplate/edit/process/cust_refund.cgi | 42 ++++++++++++++++++++------------- httemplate/view/cust_main/menu.html | 2 +- 4 files changed, 60 insertions(+), 28 deletions(-) diff --git a/FS/FS/cust_main/Billing_Realtime.pm b/FS/FS/cust_main/Billing_Realtime.pm index 78f2cbcbe..f4d87ddd1 100644 --- a/FS/FS/cust_main/Billing_Realtime.pm +++ b/FS/FS/cust_main/Billing_Realtime.pm @@ -1531,7 +1531,7 @@ sub realtime_refund_bop { my $payment_gateway = $self->agent->payment_gateway( 'method' => $options{method} ); - my( $processor, $login, $password, $namespace ) = + ( $processor, $login, $password, $namespace ) = map { my $method = "gateway_$_"; $payment_gateway->$method } qw( module username password namespace ); diff --git a/httemplate/edit/cust_refund.cgi b/httemplate/edit/cust_refund.cgi index 27c4b1937..f3dec98e1 100755 --- a/httemplate/edit/cust_refund.cgi +++ b/httemplate/edit/cust_refund.cgi @@ -105,7 +105,7 @@ % } -% elsif ($payby eq 'CHEK') { +% elsif ($payby eq 'CHEK' || $payby eq 'CARD') { %