RT# 82988 - Fixed so only formats that can handle electronic refunds can download...
[freeside.git] / httemplate / view / cust_main / payment_history / payment.html
index 5288385..3fe588b 100644 (file)
@@ -104,6 +104,7 @@ if ($unapplied > 0) {
       $apply.= ' ('.
                include( '/elements/popup_link.html',
                           'label'       => emt('apply refund'),
+                          'style'       => 'white-space: nowrap',
                           'action'      => "${p}edit/cust_pay_refund.cgi?".
                                            $cust_pay->paynum,
                           'actionlabel' => emt('Apply payment to refund'),
@@ -176,6 +177,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)$/