summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2016-03-27 02:56:31 -0700
committerIvan Kohler <ivan@freeside.biz>2016-03-27 02:56:31 -0700
commit8352207982f14a7ff3b0da376ca8031fb4ad1757 (patch)
tree4f601a4eeeb3a35f0db411c994479569a2e24444
parent41157ddedcb02482503c9e9aa51f6fd53bb9503b (diff)
freeside inc. web services for address normalizaion and printing, RT#33849
-rwxr-xr-xhttemplate/view/cust_bill.cgi5
1 files changed, 4 insertions, 1 deletions
diff --git a/httemplate/view/cust_bill.cgi b/httemplate/view/cust_bill.cgi
index c95e01dc4..d9525750c 100755
--- a/httemplate/view/cust_bill.cgi
+++ b/httemplate/view/cust_bill.cgi
@@ -98,7 +98,10 @@ function areyousure(href, message) {
<A HREF="<% $p %>misc/send-invoice.cgi?method=print;<% $link %>"><% mt('Print this invoice') |h %></A>
% }
-% if ( $curuser->access_right('Print and mail invoices') ) {
+% if ( $conf->exists('support-key')
+% && $curuser->access_right('Print and mail invoices')
+% )
+% {
| <& /elements/popup_link.html,
'action' => $p."misc/post_fsinc-invoice.cgi?$link",
'label' => 'Print and mail this invoice online',