X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpackages.html;h=811ac3c986c0169d4e27498911c0769e7fa87203;hb=2bbfc3379be19a01094d55ac6ba53a1360f1797f;hp=9b1d5b317a064beb8e146e4b996f274c6b60968b;hpb=3b5ccffae54e59c012eb1ebb348207510ca1d5ce;p=freeside.git diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html index 9b1d5b317..811ac3c98 100755 --- a/httemplate/view/cust_main/packages.html +++ b/httemplate/view/cust_main/packages.html @@ -1,18 +1,7 @@ -Packages
- % my $s = 0; % if ( $curuser->access_right('Order customer package') ) { <% $s++ ? ' | ' : '' %> - <% include( '/elements/popup_link-cust_main.html', - 'action' => $p. 'misc/order_pkg.html', - 'label' => 'Order new package', - 'actionlabel' => 'Order new package', - 'color' => '#333399', - 'cust_main' => $cust_main, - 'closetext' => 'Close', - 'width' => 763, - ) - %> + <% include('order_pkg_link.html', $cust_main) %> % } % if ( $curuser->access_right('One-time charge') @@ -27,8 +16,12 @@ Bulk order and cancel packages (preserves services) % } -

+ + + + + + + + + -% my %part_pkg = (); +% #$FS::cust_pkg::DEBUG = 2; % foreach my $cust_pkg (@$packages) { % % if ( $bgcolor eq $bgcolor1 ) { @@ -85,18 +89,13 @@ Current packages % $bgcolor = $bgcolor1; % } % -% $part_pkg{$cust_pkg->pkgpart} ||= $cust_pkg->part_pkg; -% $cust_pkg->{'_pkgpart'} ||= $part_pkg{$cust_pkg->pkgpart}; #XXX cache kludge -% % my %iopt = ( % 'bgcolor' => $bgcolor, % 'cust_pkg' => $cust_pkg, -% 'part_pkg' => $part_pkg{$cust_pkg->pkgpart}, +% 'part_pkg' => $cust_pkg->part_pkg, % %conf_opt, % ); % -% my $oldDEBUG = $FS::cust_pkg::DEBUG; -% $FS::cust_pkg::DEBUG = 2; @@ -108,8 +107,6 @@ Current packages <% include('packages/services.html', %iopt) %> -% $FS::cust_pkg::DEBUG = $oldDEBUG; - % }
+ % if ( @$packages ) { Current packages @@ -40,15 +33,14 @@ 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 ) @@ -60,6 +52,18 @@ Current packages % $cgi->param('showoldpackages', 0); ( hide old packages ) % } + + + Package reports
+ Service reports: + accounts +
+ % if ( @$packages ) { <% include('/elements/table-grid.html') %> @@ -76,7 +80,7 @@ Current packages Services
@@ -118,6 +115,10 @@ Current packages
% } + + + + % if ( $cgi->param('fragment') =~ /^cust_pkg(\d+)$/ ) {