From b48c02a92562395c84dbfe8c47db5c4ba14891a0 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Sun, 10 Mar 2019 19:12:20 -0400 Subject: RT# 82988 - Fixed so only formats that can handle electronic refunds can download those files --- httemplate/view/cust_main/menu.html | 3 +++ httemplate/view/cust_main/payment_history/payment.html | 1 + 2 files changed, 4 insertions(+) (limited to 'httemplate/view') 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') . ')'; } +$refund = '' if ($cust_pay->batchnum && !FS::pay_batch->can_handle_electronic_refunds); my $void = ''; my $voidmsg = $cust_pay->payby =~ /^(CARD|CHEK)$/ -- cgit v1.2.1