X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpackages.html;h=383c2a75e93d05827d1887a32e18b11e26474697;hb=38532144b08af1ae9e577c32ad1924e7c891b8c6;hp=2c258881a3f2a9cf469aff32c3b116cb24608111;hpb=74190e6834c47c73b7f073fb1de444e572180333;p=freeside.git
diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html
index 2c258881a..383c2a75e 100755
--- a/httemplate/view/cust_main/packages.html
+++ b/httemplate/view/cust_main/packages.html
@@ -1,94 +1,20 @@
-Packages
-
-% if ( $curuser->access_right('One-time charge') ) {
-
-
-
+ % if ( @$packages ) { Current packages @@ -109,80 +39,59 @@ Current packages % ) % ) % { +% 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 ( @$packages ) { - -<% include('/elements/table-grid.html') %> -% my $bgcolor1 = '#eeeeee'; -% my $bgcolor2 = '#ffffff'; -% my $bgcolor = ''; - - | |||
Package | -Status | -% if ( $show_location ) { -Location | +% if ( $num_old_packages ) { +% $cgi->param('showoldpackages', 1); + ( show old packages ) +% } elsif ( $cgi->param('showoldpackages') ) { +% $cgi->param('showoldpackages', 0); + ( hide old packages ) % } -Services | -
---|---|---|---|
+ Package reports +% if ( $curuser->access_right('Qualify service') ) { + | View Qualifications % } - <% include('packages/services.html', %iopt) %> - | |||
+% if ( $conf->exists('cust_pkg-group_by_location') and $show_location ) { +<% include('locations.html', + 'cust_main' => $cust_main, + 'packages' => $packages, +) %> % } - +% else { +% # in this format, put all packages in one section +<% include('/elements/table-grid.html') %> +<% include('packages/section.html', + 'packages' => $packages, + 'show_location' => $show_location, +) %> |