freeside/httemplate/view svc_external.cgi,1.2,1.3
ivan
ivan at pouncequick.420.am
Sun Oct 17 02:19:26 PDT 2004
Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory pouncequick:/tmp/cvs-serv21399/httemplate/view
Modified Files:
svc_external.cgi
Log Message:
add options to adjust UI for artera turbo as svc_export
Index: svc_external.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/svc_external.cgi,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- svc_external.cgi 22 Mar 2004 11:05:58 -0000 1.2
+++ svc_external.cgi 17 Oct 2004 09:19:23 -0000 1.3
@@ -7,6 +7,8 @@
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,6 +22,7 @@
}
#eofalse
+
%>
<%= header('External Service View', menubar(
@@ -37,9 +40,9 @@
<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 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) { %>
More information about the freeside-commits
mailing list