diff options
| author | Jonathan Prykop <jonathan@freeside.biz> | 2015-02-20 20:07:18 -0600 |
|---|---|---|
| committer | Jonathan Prykop <jonathan@freeside.biz> | 2015-03-02 14:47:42 -0600 |
| commit | e3e006a4e2d532e5643e8e7cbb1de4b7f1d21135 (patch) | |
| tree | b13e5a736effdbbfb2011042a8ea67c83a6655dd /httemplate | |
| parent | dae6eb9669fd2386fe19a31782c298efaefaf35a (diff) | |
RT#14671: Usage for current day when billing outstanding usage (for cancelling customers) [now uses suspend for everything]
Diffstat (limited to 'httemplate')
| -rw-r--r-- | httemplate/view/cust_main/packages/status.html | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/httemplate/view/cust_main/packages/status.html b/httemplate/view/cust_main/packages/status.html index a021f1c25..66df1ced9 100644 --- a/httemplate/view/cust_main/packages/status.html +++ b/httemplate/view/cust_main/packages/status.html @@ -54,9 +54,15 @@ <% pkg_status_row( $cust_pkg, emt('On Hold'), '', 'color'=>'7E0079', %opt ) %> % } else { #status: suspended - - <% pkg_status_row( $cust_pkg, emt('Suspended'), 'susp', 'color'=>'FF9900', %opt ) %> -% my $cpr = $cust_pkg->last_cust_pkg_reason('susp'); +% my ($cpr,$susplabel); +% if ($cust_pkg->is_status_delay_cancel) { +% $cpr = $cust_pkg->last_cust_pkg_reason('expire'); +% $susplabel = 'Suspended (Cancelled)'; +% } else { +% $cpr = $cust_pkg->last_cust_pkg_reason('susp'); +% $susplabel = 'Suspended'; +% } + <% pkg_status_row( $cust_pkg, emt($susplabel), 'susp', 'color'=>'FF9900', %opt ) %> <% pkg_reason_row( $cust_pkg, $cpr, 'color' => 'FF9900', %opt ) %> % } |
