X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_external.cgi;h=49183cd95cb63a181cf75a4dde4738630e7ce77e;hp=e5c977f13ab46a62eee450d05e90e7535504a454;hb=c2146ae32fdef80049abfa13098db2d45f3ebdd5;hpb=eb9668a6f3181ee02cb335272c5ee4616e61fd09 diff --git a/httemplate/view/svc_external.cgi b/httemplate/view/svc_external.cgi index e5c977f13..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,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) { 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) { %>