From a21dee1f18ad9ac220efe66a0c044aa262a12c99 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Tue, 26 Jul 2016 12:08:59 -0700 Subject: [PATCH] customer menu link to data usage report, #42310 --- httemplate/view/cust_main/packages.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html index 9a2332ba8..f3cfc06f4 100755 --- a/httemplate/view/cust_main/packages.html +++ b/httemplate/view/cust_main/packages.html @@ -167,6 +167,17 @@ if ( el ) el.scrollIntoView(true); <% mt('accounts') |h %>
<% mt('Usage reports:') |h %> <% mt('CDRs') |h %> +% 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, + &> +% } % } # unless $opt{no_links} -- 2.11.0