summaryrefslogtreecommitdiff
path: root/httemplate/edit/process
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2019-05-14 10:34:28 -0400
committerChristopher Burger <burgerc@freeside.biz>2019-05-14 10:34:28 -0400
commit3e3283b104c41a663e7599097dfcc2f33ccbbbbf (patch)
treea0d9a6e3bb0e9628d8a6a58fa0f74ccc8f64998a /httemplate/edit/process
parentb7d4aaee22ceda078bbfcca47038eb0bf4230a1c (diff)
RT# 83306 - fixed realtime refunds
Diffstat (limited to 'httemplate/edit/process')
-rwxr-xr-xhttemplate/edit/process/cust_refund.cgi7
1 files changed, 6 insertions, 1 deletions
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