diff options
| author | Christopher Burger <burgerc@freeside.biz> | 2019-03-10 19:12:20 -0400 |
|---|---|---|
| committer | Christopher Burger <burgerc@freeside.biz> | 2019-03-11 17:51:49 -0400 |
| commit | 7c079bd8cb5ccf5381ac0c054438efcd0645ddbf (patch) | |
| tree | 7747111d708a6e00e33d62368ef985e4472b36ef /httemplate/edit/process | |
| parent | 038ad47addd4168c74165c4a79051e4d2599258e (diff) | |
RT# 82988 - Fixed so only formats that can handle electronic refunds can download those files
Conflicts:
httemplate/view/cust_main/menu.html
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 33bc886ba..3a175ea35 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)$/ ) { |
