customer menu link to data usage report, #42310
authorMark Wells <mark@freeside.biz>
Tue, 26 Jul 2016 19:08:59 +0000 (12:08 -0700)
committerMark Wells <mark@freeside.biz>
Thu, 11 Aug 2016 22:34:06 +0000 (15:34 -0700)
httemplate/view/cust_main/packages.html

index 9a2332b..f3cfc06 100755 (executable)
@@ -167,6 +167,17 @@ 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') ) {
+       |
+     <& /elements/popup_link-cust_main.html,
+                 'label'       => emt('Data usage'),
+                 'action'      => "${p}search/report_sqlradius_usage-custnum.html",
+                 'cust_main'   => $cust_main,
+                 'actionlabel' => emt('Data usage report'),
+                 'width'       => 480,
+                 'height'      => 245,
+     &>
+%      }
     </TD>
 
 %   } # unless $opt{no_links}