add conditions for customer cancelled packages, RT#42043
[freeside.git] / httemplate / elements / tr-cust_svc_cancel.html
1 <%doc>
2 tr-cust_svc_cancel - Short display of a canceled customer service 
3 for use in view/cust_main.
4 </%doc>
5 <TR STYLE="color:#cccccc;">
6   <TD ALIGN="right" VALIGN="top">
7 %   if ( $opt{no_links} ) {
8       <% $part_svc->svc |h %>:
9 %   } else {
10       <% FS::UI::Web::svc_link($m, $part_svc, $cust_svc) %>
11 %   }
12   </TD>
13   <TD STYLE="padding-bottom:0px;"><B>
14 %   if ( $opt{no_links} ) {
15       <% ($cust_svc->label)[1] |h %>
16 %   } else {
17       <% FS::UI::Web::svc_label_link($m, $part_svc, $cust_svc) %>
18 %   }
19   </B></TD>
20 </TR>
21 %# no action links, the service is canceled
22
23 <%init>
24 my %opt = @_;
25 my $curuser = $FS::CurrentUser::CurrentUser;
26
27 my $cust_svc = $opt{'cust_svc'};
28 my $part_svc = $opt{'part_svc'} || $cust_svc->part_svc;
29 my $cust_pkg = $opt{'cust_pkg'} || $cust_svc->cust_pkg;
30 my $svc_x = $cust_svc->svc_x;
31
32 </%init>