summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorivan <ivan>2004-10-17 09:19:23 +0000
committerivan <ivan>2004-10-17 09:19:23 +0000
commit326123622b3e60db0d6893f076b3a082f4e2a44a (patch)
treed70aa7c07c357a7abacd2a8293adf41586d3946e /httemplate
parentdbc6a01ed6a3b4373b01bf985ca735386dd047d4 (diff)
add options to adjust UI for artera turbo as svc_export
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/docs/upgrade10.html3
-rw-r--r--httemplate/view/svc_external.cgi9
2 files changed, 9 insertions, 3 deletions
diff --git a/httemplate/docs/upgrade10.html b/httemplate/docs/upgrade10.html
index 6a11324b2..dc60865a5 100644
--- a/httemplate/docs/upgrade10.html
+++ b/httemplate/docs/upgrade10.html
@@ -10,6 +10,9 @@ install Net::SSH 0.08
install NetAddr::IP, Chart::Base, IPC::ShareLite and Locale::SubCountry
+INSERT INTO msgcat ( msgnum, msgcode, locale, msg ) VALUES ( 20, 'svc_external-id', 'en_US', 'External ID' );
+INSERT INTO msgcat ( msgnum, msgcode, locale, msg ) VALUES ( 21, 'svc_external-title', 'en_US', 'Title' );
+
CREATE TABLE cust_bill_pkg_detail (
detailnum serial,
pkgnum int NOT NULL,
diff --git a/httemplate/view/svc_external.cgi b/httemplate/view/svc_external.cgi
index 59cc357c7..49183cd95 100644
--- a/httemplate/view/svc_external.cgi
+++ b/httemplate/view/svc_external.cgi
@@ -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,6 +22,7 @@ if ($pkgnum) {
}
#eofalse
+
%>
<%= header('External Service View', menubar(
@@ -37,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) { %>