% # activate rolldown buttons for hidden package blocks
% unless ( $opt{no_links} ) {
% my $s = 0;
% if ( $curuser->access_right('Qualify service') ) {
<% $s++ ? ' | ' : '' %>
<& qual_link.html, $cust_main &>
% }
% if ( $curuser->access_right('Order customer package') ) {
<% $s++ ? ' | ' : '' %>
<& /elements/order_pkg_link.html, 'cust_main'=>$cust_main &>
% }
% if ( $curuser->access_right('One-time charge')
% && $conf->config('payby-default') ne 'HIDE'
% ) {
<% $s++ ? ' | ' : '' %>
<& /elements/one_time_charge_link.html, 'custnum'=>$cust_main->custnum &>
% }
% if ( $curuser->access_right('Bulk move customer services') ) {
<% $s++ ? ' | ' : '' %>
<& /elements/popup_link-cust_main.html,
'label' => emt('Move services between packages'),
'action' => "${p}edit/bulk-cust_svc-pkgnum.html",
'cust_main' => $cust_main,
'actionlabel' => emt('Move services'),
'width' => 968, #763,
'height' => 575,
&>
% }
% if ( $curuser->access_right('Bulk change customer packages') ) {
<% $s++ ? ' | ' : '' %>
<% mt('Bulk order and cancel packages') |h %>
% }
% } # unless $opt{no_links}
% 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 %> ) % } | % unless ( $opt{no_links} ) {
<% 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 %> |
% } # unless $opt{no_links}
% $opt{cust_main} = $cust_main; % $opt{packages} = \@packages; % $opt{cust_location_cache} = {}; % if ( $conf->exists('cust_pkg-group_by_location') ) { <& locations.html, %opt &> % } else { # in this format, put all packages in one section <& /elements/table-grid.html &> <& packages/section.html, %opt &> |