- <% pkg_status_row_changed( $cust_pkg ) %>
- <% pkg_status_row_if( $cust_pkg, $last_bill_or_renewed, 'last_bill' ) %>
-% # pkg_status_row($cust_pkg, 'Next bill', 'bill')
- <% pkg_status_row_if( $cust_pkg, 'Expires', 'expire' ) %>
-
- <TR>
- <TD COLSPAN=<%$colspan%>>
- <FONT SIZE=-1>
-% if ( $curuser->access_right('Unsuspend customer package') ) {
- ( <% pkg_unsuspend_link($cust_pkg) %> )
-% }
-% if ( $curuser->access_right('Cancel customer package immediately') ) {
- ( <% pkg_cancel_link($cust_pkg) %> )
-% }
- </FONT>
- </TD>
- </TR>
-
-% } else { #status: active
-%
-% unless ( $cust_pkg->get('setup') ) { #not setup
-%
-% unless ( $part_pkg->freq ) {
-
- <% pkg_status_row_colspan('Not yet billed (one-time charge)') %>
-
- <TR>
- <TD COLSPAN=<%$colspan%>>
- <FONT SIZE=-1>
-% if ( $curuser->access_right('Cancel customer package immediately') ) {
- ( <% pkg_cancel_link($cust_pkg) %> )
-% }
- </FONT>
- </TD>
- </TR>
-
-% } else {
-
- <% pkg_status_row_colspan("Not yet billed ($billed_or_prepaid ". myfreq($part_pkg). ')' ) %>
-
-% }
-%
-% } else { #setup
-%
-% unless ( $part_pkg->freq ) {
-
- <% pkg_status_row_colspan('One-time charge') %>
-
- <% pkg_status_row($cust_pkg, 'Billed', 'setup') %>
-
-% } else {
-%
-% if (scalar($cust_pkg->overlimit)) {
-
- <% pkg_status_row_colspan(
- 'Overlimit',
- $billed_or_prepaid. ' '. myfreq($part_pkg),
- 'color' => 'FFD000',
- )
- %>
-
-% } else {
- <% pkg_status_row_colspan(
- 'Active',
- $billed_or_prepaid. ' '. myfreq($part_pkg),
- 'color' => '00CC00',
- )
- %>
-% }
-
- <% pkg_status_row($cust_pkg, 'Setup', 'setup') %>
-
-% }
-%
-% }
-
- <% pkg_status_row_changed( $cust_pkg ) %>
- <% pkg_status_row_if( $cust_pkg, $last_bill_or_renewed, 'last_bill' ) %>
- <% pkg_status_row_if( $cust_pkg, $next_bill_or_prepaid_until, 'bill' ) %>
- <% pkg_status_row_if( $cust_pkg, 'Will suspend on', 'adjourn' ) %>
- <% pkg_status_row_if( $cust_pkg, 'Expires', 'expire' ) %>
-
-% if ( $part_pkg->freq ) {
-
- <TR>
- <TD COLSPAN=<%$colspan%>>
- <FONT SIZE=-1>
-% if ( $curuser->access_right('Suspend customer package') ) {
- ( <% pkg_suspend_link($cust_pkg) %> )
-% }
-% if ( $curuser->access_right('Suspend customer package later') ) {
- ( <% pkg_adjourn_link($cust_pkg) %> )
-% }
-% if ( $curuser->access_right('Cancel customer package immediately') ) {
- ( <% pkg_cancel_link($cust_pkg) %> )
-% }
-% if ( $curuser->access_right('Cancel customer package later') ) {
- ( <% pkg_expire_link($cust_pkg) %> )
-% }
-
- <FONT>
- </TD>
- </TR>
+ <TD ALIGN="right">
+ <A HREF="<%$p%>search/report_cust_pkg.html?custnum=<% $cust_main->custnum %>"><% mt('Package reports') |h %></A>
+% if ( $curuser->access_right('Qualify service') ) {
+ | <A HREF="<%$p%>search/qual.cgi?custnum=<% $cust_main->custnum %>"><% mt('View Qualifications') |h %></A>
+% }
+ <BR>
+ <% mt('Service reports:') |h %>
+ <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>
+ </TD>
+
+% } # unless $opt{no_links}
+
+ </TR>
+
+ <TR>
+ <TD COLSPAN=2>
+
+% $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 &>
+ </TABLE>