remove agent_svcid from cust_svc->label and instead put it explicity in customer...
authorIvan Kohler <ivan@freeside.biz>
Wed, 9 May 2012 04:53:17 +0000 (21:53 -0700)
committerIvan Kohler <ivan@freeside.biz>
Wed, 9 May 2012 04:53:17 +0000 (21:53 -0700)
FS/FS/cust_svc.pm
httemplate/elements/tr-cust_svc.html
httemplate/search/cust_svc.html

index 604c654..2ec8f12 100644 (file)
@@ -461,12 +461,9 @@ sub svc_label_long { shift->_svc_label('label_long', @_); }
 sub _svc_label {
   my( $self, $method, $svc_x ) = ( shift, shift, shift );
 
-  my $identifier = $svc_x->$method(@_);
-  $identifier = '['.$self->agent_svcid.']'. $identifier if $self->agent_svcid;
-
   (
     $self->part_svc->svc,
-    $identifier,
+    $svc_x->$method(@_),
     $self->part_svc->svcdb,
     $self->svcnum
   );
index ca5de86..1ca22f6 100644 (file)
@@ -24,7 +24,7 @@ Usage:
   <TD ALIGN="right" VALIGN="top"><% 
 FS::UI::Web::svc_link($m, $part_svc, $cust_svc)
 %></TD>
-  <TD STYLE="padding-bottom:0px"><B><%
+  <TD STYLE="padding-bottom:0px"><B><% $cust_svc->agent_svcid ? $cust_svc->agent_svcid.': ' : '' %><%
 FS::UI::Web::svc_label_link($m, $part_svc, $cust_svc)
 %></B></TD>
 <TD ALIGN="right"><% FS::UI::Web::svc_export_links($m, $part_svc, $cust_svc) %>
index 585431e..2adcbd7 100644 (file)
                                 sub { 
                                   #$_[0]->svc. ': '. $_[0]->label;
                                   my($label, $value, $svcdb) = $_[0]->label;
-                                  "$label: $value";
+                                   my $id = $_[0]->agent_svcid
+                                              ? $_[0]->agent_svcid.': '
+                                              : '';
+                                  "$label: $id$value";
                                 },
                                 # package?
                                 \&FS::UI::Web::cust_fields,