summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorivan <ivan>2006-10-23 01:47:03 +0000
committerivan <ivan>2006-10-23 01:47:03 +0000
commit1043b612a287f6ccc6bbe32357483019d390f840 (patch)
treeabfa78eaa4809a61f88bcfb449ba0f48f1eaeb65 /httemplate
parent1b27aa8fef6de6b57abb3967d1fcf85983c645ab (diff)
fix regression from table re-layout: don't display provision links for cancelled packages
Diffstat (limited to 'httemplate')
-rwxr-xr-xhttemplate/view/cust_main/packages.html25
1 files changed, 14 insertions, 11 deletions
diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html
index 1d65ea7f7..8fff7be4f 100755
--- a/httemplate/view/cust_main/packages.html
+++ b/httemplate/view/cust_main/packages.html
@@ -327,35 +327,38 @@ Current packages
<TD CLASS="inv" BGCOLOR="<% $bgcolor %>">
<TABLE CLASS="inv" BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="100%">
-%
+
% foreach my $svcpart (sort {$a->{svcpart} <=> $b->{svcpart}} @{$pkg->{svcparts}}) {
+
% foreach my $service (@{$svcpart->{services}}) {
-%
<TR>
<TD ALIGN="right" VALIGN="top" ROWSPAN=2><%svc_link($svcpart,$service)%></TD>
<TD STYLE="padding-bottom:0px"><B><%svc_label_link($svcpart,$service)%></B></TD>
</TR>
-% if ( $curuser->access_right('Unprovision customer service') ) {
+
+% if ( $curuser->access_right('Unprovision customer service') ) {
<TR>
<TD ALIGN="right" VALIGN="top" STYLE="padding-bottom:5px;padding-top:0px"><FONT SIZE="-2">(&nbsp;<%svc_unprovision_link($service)%>&nbsp;)</FONT></TD>
</TR>
-% }
-% }
-% if ( $curuser->access_right('Provision customer service')
-% && $svcpart->{count} < $svcpart->{quantity}
-% )
-% {
-%
+% }
+% }
+
+% if ( ! $pkg->{'cancel'}
+% && $curuser->access_right('Provision customer service')
+% && $svcpart->{count} < $svcpart->{quantity}
+% ) {
<TR>
<TD COLSPAN=2 ALIGN="center" STYLE="padding-bottom:4px;padding-top:0px">
<B><% svc_provision_link($pkg, $svcpart, $conf, $curuser) %></B>
</TD>
</TR>
-% }
+
+% }
+
% }