From 3e3283b104c41a663e7599097dfcc2f33ccbbbbf Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Tue, 14 May 2019 10:34:28 -0400 Subject: [PATCH] RT# 83306 - fixed realtime refunds --- httemplate/edit/process/cust_refund.cgi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/httemplate/edit/process/cust_refund.cgi b/httemplate/edit/process/cust_refund.cgi index f248d54b7..d582b128f 100755 --- a/httemplate/edit/process/cust_refund.cgi +++ b/httemplate/edit/process/cust_refund.cgi @@ -39,7 +39,12 @@ $cgi->param('reasonnum') =~ /^(-?\d+)$/ or die "Illegal reasonnum"; my ($reasonnum, $error) = $m->comp('/misc/process/elements/reason'); $cgi->param('reasonnum', $reasonnum) unless $error; -$error = "No batch download format configured that allows electronic refunds" unless (FS::pay_batch->can_handle_electronic_refunds && !$error); +if ( $cgi->param('batch') ) { + $error = "No batch download format configured that allows electronic refunds via batch processing." + unless (FS::pay_batch->can_handle_electronic_refunds && !$error); +} + +#die "my error\n".$error; if ( $error ) { # do nothing -- 2.11.0