diff options
author | jeff <jeff> | 2008-04-16 18:32:58 +0000 |
---|---|---|
committer | jeff <jeff> | 2008-04-16 18:32:58 +0000 |
commit | 9e4bc4c0c9c77d75618196f4f0eeeeeb35e2ee08 (patch) | |
tree | 6c310e398496e44c13cf78c07b0f72d22978e62d /httemplate | |
parent | 81026510972881108c9bd9c72d146d3d47d72f2e (diff) |
show user who created (cancel/suspend) reason and possibly fix a lingering spurious usergroup bug
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/view/cust_main/packages.html | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html index ec79c0814..09bfd1d11 100755 --- a/httemplate/view/cust_main/packages.html +++ b/httemplate/view/cust_main/packages.html @@ -145,15 +145,22 @@ Current packages % % % if ( $cust_pkg->get('cancel') ) { #status: cancelled +% my $cpr = $cust_pkg->last_cust_pkg_reason; <% pkg_status_row($cust_pkg, 'Cancelled', 'cancel', 'color'=>'FF0000' ) %> <% pkg_status_row_colspan( - ( $cust_pkg->last_reason ? $cust_pkg->last_reason->reason : '' ), '', + ( ( $cpr && ( $cpr->date == $cust_pkg->get('cancel') || + $cpr->date == $cust_pkg->expire + ) + ) ? $cpr->reasontext. ' by '. $cpr->otaker : '' ), '', 'align' => 'right', 'color' => 'ff0000', 'size' => '-2', ) %> + + <% pkg_status_row( $cust_pkg, 'Suspended', 'susp', 'color'=>'FF9900' ) %> + % unless ( $cust_pkg->get('setup') ) { <% pkg_status_row_colspan('Never billed') %> @@ -170,11 +177,15 @@ Current packages % } else { % % if ( $cust_pkg->get('susp') ) { #status: suspended +% my $cpr = $cust_pkg->last_cust_pkg_reason; <% pkg_status_row( $cust_pkg, 'Suspended', 'susp', 'color'=>'FF9900' ) %> <% pkg_status_row_colspan( - ( $cust_pkg->last_reason ? $cust_pkg->last_reason->reason : '' ), '', + ( ( $cpr && ( $cpr->date == $cust_pkg->susp || + $cpr->date == $cust_pkg->adjourn + ) + ) ? $cpr->reasontext. ' by '. $cpr->otaker : '' ), '', 'align' => 'right', 'color' => 'FF9900', 'size' => '-2', ) %> |