1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
%
%
%my($query) = $cgi->keywords;
%$query =~ /^(\d+)$/;
%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');
%my($cust_pkg, $custnum);
%if ($pkgnum) {
% $cust_pkg = qsearchs( 'cust_pkg', { 'pkgnum' => $pkgnum } );
% $custnum = $cust_pkg->custnum;
%} else {
% $cust_pkg = '';
% $custnum = '';
%}
%#eofalse
%
%
%
<% include("/elements/header.html",'External Service View', menubar(
( ( $custnum )
? ( "View this customer (#$custnum)" => "${p}view/cust_main.cgi?$custnum",
)
: ( "Cancel this (unaudited) external service" =>
"${p}misc/cancel-unaudited.cgi?$svcnum" )
),
"Main menu" => $p,
)) %>
<A HREF="<%$p%>edit/svc_external.cgi?<%$svcnum%>">Edit this information</A><BR>
<% ntable("#cccccc") %><TR><TD><% ntable("#cccccc",2) %>
<TR><TD ALIGN="right">Service number</TD>
<TD BGCOLOR="#ffffff"><% $svcnum %></TD></TR>
<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) {
<% $svc_external->pvf($_)->widget('HTML', 'view', $svc_external->getfield($_)) %>
% }
</TABLE></TD></TR></TABLE>
<BR><% joblisting({'svcnum'=>$svcnum}, 1) %>
</BODY></HTML>
|