% my $s = 0;
% if ( $curuser->access_right('Qualify service') ) {
<% $s++ ? ' | ' : '' %>
<& qual_link.html, $cust_main &>
% }
% if ( $curuser->access_right('Order customer package') ) {
<% $s++ ? ' | ' : '' %>
<& order_pkg_link.html, $cust_main &>
% }
% if ( $curuser->access_right('One-time charge')
% && $conf->config('payby-default') ne 'HIDE'
% ) {
<% $s++ ? ' | ' : '' %>
<& one_time_charge_link.html, $cust_main &>
% }
% if ( $curuser->access_right('Bulk change customer packages') ) {
<% $s++ ? ' | ' : '' %>
<% mt('Bulk order and cancel packages') |h %> (<% mt('preserves services') |h %>)
% }
% if ( @$packages ) { <% mt('Current packages') |h %> % } % if ( $cust_main->num_cancelled_pkgs ) { % if ( $cgi->param('showcancelledpackages') eq '0' #see if it was set by me % || ( $conf->exists('hidecancelledpackages') % && ! $cgi->param('showcancelledpackages') % ) % ) % { % my $prev = $cgi->param('showcancelledpackages'); % $cgi->param('showcancelledpackages', 1); ( <% mt('show') |h %> % $cgi->param('showcancelledpackages', $prev); % } else { % $cgi->param('showcancelledpackages', 0); ( <% mt('hide') |h %> % $cgi->param('showcancelledpackages', 1); % } <% mt('cancelled packages') |h %> ) % } % if ( $num_old_packages ) { % $cgi->param('showoldpackages', 1); ( <% mt('show old packages') |h %> ) % } elsif ( $cgi->param('showoldpackages') ) { % $cgi->param('showoldpackages', 0); ( <% mt('hide old packages') |h %> ) % } |
<% mt('Package reports') |h %>
% if ( $curuser->access_right('Qualify service') ) {
| <% mt('View Qualifications') |h %>
% }
<% mt('Service reports:') |h %> <% mt('accounts') |h %> <% mt('Usage reports:') |h %> <% mt('CDRs') |h %> |
% if ( $conf->exists('cust_pkg-group_by_location') and $show_location ) { <& locations.html, 'cust_main' => $cust_main, 'packages' => $packages, &> % } % else { % # in this format, put all packages in one section <& /elements/table-grid.html &> <& packages/section.html, 'cust_main' => $cust_main, 'packages' => $packages, 'show_location' => $show_location, &> |