X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpackages.html;h=811ac3c986c0169d4e27498911c0769e7fa87203;hb=89da4b96c4e2fce7079be8d2729750c088f8035b;hp=c5a0706d65b42418e9c8cd7520e39788b97c50ba;hpb=c21b6e69583bec632de7fcd340c29982c868f73d;p=freeside.git
diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html
index c5a0706d6..811ac3c98 100755
--- a/httemplate/view/cust_main/packages.html
+++ b/httemplate/view/cust_main/packages.html
@@ -1,350 +1,229 @@
-<%
- my( $cust_main ) = @_;
- my $conf = new FS::Conf;
+% my $s = 0;
+% if ( $curuser->access_right('Order customer package') ) {
+ <% $s++ ? ' | ' : '' %>
+ <% include('order_pkg_link.html', $cust_main) %>
+% }
+
+% if ( $curuser->access_right('One-time charge')
+% && $conf->config('payby-default') ne 'HIDE'
+% ) {
+ <% $s++ ? ' | ' : '' %>
+ <% include('one_time_charge_link.html', $cust_main) %>
+% }
+
+% if ( $curuser->access_right('Bulk change customer packages') ) {
+ <% $s++ ? ' | ' : '' %>
+ Bulk order and cancel packages (preserves services)
+% }
+
+
+
+
+ +% if ( @$packages ) { + +Current packages +% } +% 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); + ( show +% $cgi->param('showcancelledpackages', $prev); +% } else { +% $cgi->param('showcancelledpackages', 0); + ( hide +% $cgi->param('showcancelledpackages', 1); +% } + + cancelled packages ) +% } +% if ( $num_old_packages ) { +% $cgi->param('showoldpackages', 1); + ( show old packages ) +% } elsif ( $cgi->param('showoldpackages') ) { +% $cgi->param('showoldpackages', 0); + ( hide old packages ) +% } + + | +
+ Package reports + Service reports: + accounts + |
+ |||||||||||||||||||||||||||||||||||||||||||||||||
+
+% if ( @$packages ) {
+
+<% include('/elements/table-grid.html') %>
+% my $bgcolor1 = '#eeeeee';
+% my $bgcolor2 = '#ffffff';
+% my $bgcolor = '';
- my $packages = get_packages($cust_main, $conf);
-%>
-
-Packages
-( Bulk order and cancel packages (preserves services) )
-
-<% if ( @$packages ) { %>
-
-
| \n";
-
- if ($rowspan == 0) { print qq!||||||||||||||||||||||||||||||||||||||||||||||||||
<%=svc_link($svcpart,$service)%> | -<%=svc_label_link($svcpart,$service)%> ( <%=svc_unprovision_link($service)%> ) |
+ Package | +Status | +% if ( $show_location ) { +Location | +% } +Services | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
!.svc_provision_link($pkg, $svcpart, $conf).qq! | \n