diff options
Diffstat (limited to 'httemplate/view')
-rw-r--r-- | httemplate/view/cust_main/menu.html | 3 | ||||
-rw-r--r-- | httemplate/view/cust_main/payment_history/payment.html | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/httemplate/view/cust_main/menu.html b/httemplate/view/cust_main/menu.html index cc9f1fc71..63d5c9abd 100644 --- a/httemplate/view/cust_main/menu.html +++ b/httemplate/view/cust_main/menu.html @@ -467,6 +467,9 @@ my @menu = ( actionlabel => 'Enter electronic check refund', width => 440, acl => ['Post refund' ], + condition => sub { + FS::pay_batch->can_handle_electronic_refunds + }, }, ], diff --git a/httemplate/view/cust_main/payment_history/payment.html b/httemplate/view/cust_main/payment_history/payment.html index 6402383d8..eeddc47b1 100644 --- a/httemplate/view/cust_main/payment_history/payment.html +++ b/httemplate/view/cust_main/payment_history/payment.html @@ -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)$/ |