so Search.tsf and Search.rdf work
[freeside.git] / httemplate / view / svc_external.cgi
index e5c977f..49183cd 100644 (file)
@@ -7,6 +7,8 @@ my $svcnum = $1;
 my $svc_external = qsearchs( 'svc_external', { 'svcnum' => $svcnum } )
   or die "svc_external: Unknown svcnum $svcnum";
 
+my $conf = new FS::Conf;
+
 #false laziness w/all svc_*.cgi
 my $cust_svc = qsearchs( 'cust_svc', { 'svcnum' => $svcnum } );
 my $pkgnum = $cust_svc->getfield('pkgnum');
@@ -20,12 +22,12 @@ if ($pkgnum) {
 }
 #eofalse
 
+
 %>
 
 <%= header('External Service View', menubar(
   ( ( $custnum )
-    ? ( "View this package (#$pkgnum)" => "${p}view/cust_pkg.cgi?$pkgnum",
-        "View this customer (#$custnum)" => "${p}view/cust_main.cgi?$custnum",
+    ? ( "View this customer (#$custnum)" => "${p}view/cust_main.cgi?$custnum",
       )                                                                       
     : ( "Cancel this (unaudited) external service" =>
           "${p}misc/cancel-unaudited.cgi?$svcnum" )
@@ -38,9 +40,9 @@ if ($pkgnum) {
 
 <TR><TD ALIGN="right">Service number</TD>
   <TD BGCOLOR="#ffffff"><%= $svcnum %></TD></TR>
-<TR><TD ALIGN="right">External ID</TD>
-  <TD BGCOLOR="#ffffff"><%= $svc_external->id %></TD></TR>
-<TR><TD ALIGN="right">Title</TD>
+<TR><TD ALIGN="right"><%= FS::Msgcat::_gettext('svc_external-id') || 'External&nbsp;ID' %></TD>
+  <TD BGCOLOR="#ffffff"><%= $conf->config('svc_external-display_type') eq 'artera_turbo' ? sprintf('%010d', $svc_external->id) : $svc_external->id %></TD></TR>
+<TR><TD ALIGN="right"><%= FS::Msgcat::_gettext('svc_external-title') || 'Title' %></TD>
   <TD BGCOLOR="#ffffff"><%= $svc_external->title %></TD></TR>
 
 <% foreach (sort { $a cmp $b } $svc_external->virtual_fields) { %>