show reasons
authorjeff <jeff>
Wed, 25 Oct 2006 18:10:05 +0000 (18:10 +0000)
committerjeff <jeff>
Wed, 25 Oct 2006 18:10:05 +0000 (18:10 +0000)
httemplate/view/cust_main/packages.html

index 8fff7be..f93a076 100755 (executable)
@@ -136,6 +136,11 @@ Current packages
     <TD WIDTH="<%$width%>" ALIGN="right"><FONT COLOR="#ff0000"><B>Cancelled&nbsp;</B></FONT></TD>
     <% pkg_datestr($pkg,'cancel',$conf) %>
   </TR>
+  <TR>
+    <TD WIDTH="<%$width%>" ALIGN="right"><FONT COLOR="#ff0000" SIZE="-2">
+      <% $pkg->{reason} %>
+    </FONT></TD>
+  </TR>
 % unless ( $pkg->{setup} ) { 
 
 
@@ -172,6 +177,11 @@ Current packages
       <TD WIDTH="<%$width%>" ALIGN="right"><FONT COLOR="#FF9900"><B>Suspended</B>&nbsp;</FONT></TD>
       <% pkg_datestr($pkg,'susp',$conf) %>
     </TR>
+    <TR>
+      <TD WIDTH="<%$width%>" ALIGN="right"><FONT COLOR="#FF9900" SIZE="-2">
+        <% $pkg->{reason} %>
+      </FONT></TD>
+    </TR>
 % unless ( $pkg->{setup} ) { 
 
 
@@ -413,6 +423,7 @@ Current packages
 %    $pkg{susp} = $cust_pkg->getfield('susp');
 %    $pkg{expire} = $cust_pkg->getfield('expire');
 %    $pkg{cancel} = $cust_pkg->getfield('cancel');
+%    $pkg{reason} = $cust_pkg->last_reason->reason if $cust_pkg->last_reason;
 %
 %  
 %    my %svcparts = map {