X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpackages.html;h=3ac4861c3e3199680e8f17aafc7b02593d7a8f88;hb=7b125e587a4d1ee0aca692e23ea7897f671855ae;hp=9b13a8f972fd49a4cb4c56fe1be1031ee8c20b42;hpb=ff2ad3e74efe8173d362003e1efdce5953388acf;p=freeside.git diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html index 9b13a8f97..3ac4861c3 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) % } -

+ + + + + + + + + -% $FS::cust_pkg::DEBUG = 2; +% #$FS::cust_pkg::DEBUG = 2; % foreach my $cust_pkg (@$packages) { % % if ( $bgcolor eq $bgcolor1 ) { @@ -85,11 +89,6 @@ Current packages % $bgcolor = $bgcolor1; % } % -% my %hash = $cust_pkg->hash; -% my %part_pkg = map { /^part_pkg_(.+)$/ or die; ( $1 => $hash{$_} ); } -% grep { /^part_pkg_/ } keys %hash; -% $cust_pkg->{'_pkgpart'} = new FS::part_pkg \%part_pkg; -% % my %iopt = ( % 'bgcolor' => $bgcolor, % 'cust_pkg' => $cust_pkg, @@ -116,6 +115,10 @@ Current packages
% } + + +
+ % 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
+ % if ( $cgi->param('fragment') =~ /^cust_pkg(\d+)$/ ) {