X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpackages.html;h=ed4ca60c48568e48599b739f9803731f14de56ac;hb=457da870c23db87fbbc29d7c667a73f41422dd71;hp=d98de8e63b993df1a0c219026c1aedc75003c860;hpb=613f320ae076de8612ff80fc99c516b544ff3897;p=freeside.git diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html index d98de8e63..ed4ca60c4 100755 --- a/httemplate/view/cust_main/packages.html +++ b/httemplate/view/cust_main/packages.html @@ -1,18 +1,13 @@ -Packages
- % my $s = 0; + +% if ( $curuser->access_right('Qualify service') ) { + <% $s++ ? ' | ' : '' %> + <% include('qual_link.html', $cust_main) %> +% } + % 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 +22,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 ) { @@ -111,6 +127,10 @@ Current packages
% } + + +
+ % if ( @$packages ) { Current packages @@ -40,15 +39,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 +58,24 @@ Current packages % $cgi->param('showoldpackages', 0); ( hide old packages ) % } + + + Package reports +% if ( $curuser->access_right('Qualify service') ) { + | View Qualifications +% } +
+ Service reports: + accounts
+ Usage reports: + CDRs +
+ % if ( @$packages ) { <% include('/elements/table-grid.html') %> @@ -76,7 +92,7 @@ Current packages Services
+ % if ( $cgi->param('fragment') =~ /^cust_pkg(\d+)$/ ) {