diff options
author | Christopher Burger <burgerc@freeside.biz> | 2019-03-10 19:12:20 -0400 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2019-03-10 19:12:20 -0400 |
commit | b48c02a92562395c84dbfe8c47db5c4ba14891a0 (patch) | |
tree | b2fda5bb8a2ed969b702e7006be988e47ee920a5 /httemplate/edit/process | |
parent | 765aac1902113738afd1bcaee8eb25b44ee92e63 (diff) |
RT# 82988 - Fixed so only formats that can handle electronic refunds can download those files
Diffstat (limited to 'httemplate/edit/process')
-rwxr-xr-x | httemplate/edit/process/cust_refund.cgi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/httemplate/edit/process/cust_refund.cgi b/httemplate/edit/process/cust_refund.cgi index 9175eb136..25f6e00a1 100755 --- a/httemplate/edit/process/cust_refund.cgi +++ b/httemplate/edit/process/cust_refund.cgi @@ -39,6 +39,8 @@ $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 ( $error ) { # do nothing } elsif ( $payby =~ /^(CARD|CHEK)$/ ) { |