RT# 82988 - Fixed so only formats that can handle electronic refunds can download...
[freeside.git] / httemplate / view / cust_main / payment_history / payment.html
index 6402383..eeddc47 100644 (file)
@@ -178,6 +178,7 @@ if (    $cust_pay->closed !~ /^Y/i
             qq! TITLE="! . $refundtitle
             . '">' . emt('refund') . '</A>)';
 }
+$refund = '' if ($cust_pay->batchnum && !FS::pay_batch->can_handle_electronic_refunds);
 
 my $void = '';
 my $voidmsg = $cust_pay->payby =~ /^(CARD|CHEK)$/