From 31d6d0e8d0d624cd051440acf322cd8893c1026e Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 23 Dec 2003 02:36:38 +0000 Subject: add svc_external --- httemplate/view/svc_external.cgi | 52 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 httemplate/view/svc_external.cgi (limited to 'httemplate/view/svc_external.cgi') diff --git a/httemplate/view/svc_external.cgi b/httemplate/view/svc_external.cgi new file mode 100644 index 000000000..e5c977f13 --- /dev/null +++ b/httemplate/view/svc_external.cgi @@ -0,0 +1,52 @@ + +<% + +my($query) = $cgi->keywords; +$query =~ /^(\d+)$/; +my $svcnum = $1; +my $svc_external = qsearchs( 'svc_external', { 'svcnum' => $svcnum } ) + or die "svc_external: Unknown svcnum $svcnum"; + +#false laziness w/all svc_*.cgi +my $cust_svc = qsearchs( 'cust_svc', { 'svcnum' => $svcnum } ); +my $pkgnum = $cust_svc->getfield('pkgnum'); +my($cust_pkg, $custnum); +if ($pkgnum) { + $cust_pkg = qsearchs( 'cust_pkg', { 'pkgnum' => $pkgnum } ); + $custnum = $cust_pkg->custnum; +} else { + $cust_pkg = ''; + $custnum = ''; +} +#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", + ) + : ( "Cancel this (unaudited) external service" => + "${p}misc/cancel-unaudited.cgi?$svcnum" ) + ), + "Main menu" => $p, +)) %> + +Edit this information
+<%= ntable("#cccccc") %><%= ntable("#cccccc",2) %> + +Service number + <%= $svcnum %> +External ID + <%= $svc_external->id %> +Title + <%= $svc_external->title %> + +<% foreach (sort { $a cmp $b } $svc_external->virtual_fields) { %> + <%= $svc_external->pvf($_)->widget('HTML', 'view', $svc_external->getfield($_)) %> +<% } %> + + +
<%= joblisting({'svcnum'=>$svcnum}, 1) %> + -- cgit v1.2.1 From e3f327b2af9e6a591bae41d315fda731ec7f5128 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 22 Mar 2004 11:05:58 +0000 Subject: remove everything that links to package view also, closes: Bug#569 --- httemplate/view/svc_external.cgi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'httemplate/view/svc_external.cgi') diff --git a/httemplate/view/svc_external.cgi b/httemplate/view/svc_external.cgi index e5c977f13..59cc357c7 100644 --- a/httemplate/view/svc_external.cgi +++ b/httemplate/view/svc_external.cgi @@ -24,8 +24,7 @@ if ($pkgnum) { <%= 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" ) -- cgit v1.2.1 From 326123622b3e60db0d6893f076b3a082f4e2a44a Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 17 Oct 2004 09:19:23 +0000 Subject: add options to adjust UI for artera turbo as svc_export --- httemplate/view/svc_external.cgi | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'httemplate/view/svc_external.cgi') 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) { Service number <%= $svcnum %> -External ID - <%= $svc_external->id %> -Title +<%= FS::Msgcat::_gettext('svc_external-id') || 'External ID' %> + <%= $conf->config('svc_external-display_type') eq 'artera_turbo' ? sprintf('%010d', $svc_external->id) : $svc_external->id %> +<%= FS::Msgcat::_gettext('svc_external-title') || 'Title' %> <%= $svc_external->title %> <% foreach (sort { $a cmp $b } $svc_external->virtual_fields) { %> -- cgit v1.2.1