X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fprocess%2Fcust_refund.cgi;h=25f6e00a1b56fb2474a31cf007f476dd760b5a8b;hp=9175eb1367b3f2bd752ced9744afabd6f4242d9a;hb=b48c02a92562395c84dbfe8c47db5c4ba14891a0;hpb=765aac1902113738afd1bcaee8eb25b44ee92e63 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)$/ ) {