show data usage report link only for customers that might have data usage, #42310
[freeside.git] / httemplate / view / cust_main / packages.html
index f3cfc06..958a061 100755 (executable)
@@ -167,7 +167,8 @@ if ( el ) el.scrollIntoView(true);
         <A HREF="<%$p%>search/report_svc_acct.html?custnum=<% $cust_main->custnum %>"><% mt('accounts') |h %></A><BR>
       <% mt('Usage reports:') |h %> 
         <A HREF="<%$p%>search/report_cdr.html?custnum=<% $cust_main->custnum %>"><% mt('CDRs') |h %></A>
-%      if ( $curuser->access_right('Usage: RADIUS sessions') ) {
+%      if ( $curuser->access_right('Usage: RADIUS sessions')
+%           and $cust_main->num_usage_pkgs > 0 ) {
        |
      <& /elements/popup_link-cust_main.html,
                  'label'       => emt('Data usage'),