1 <& elements/svc_Common.html,
2 'table' => 'svc_circuit',
5 'html_foot' => sub { $self->call_method('.foot', @_) },
8 % my $svc_circuit = shift;
9 % my $link = [ 'svc_phone.cgi?', 'svcnum' ];
10 % if ( FS::svc_phone->count('circuit_svcnum = '.$svc_circuit->svcnum) ) {
11 <& /search/elements/search.html,
13 'title' => 'Provisioned phone services',
14 'name_singular' => 'phone number',
15 'query' => { 'table' => 'svc_phone',
16 'hashref' => { 'circuit_svcnum' => $svc_circuit->svcnum },
17 'addl_from' => ' LEFT JOIN cust_svc USING (svcnum)'.
18 ' LEFT JOIN part_svc USING (svcpart)',
19 'select' => 'svc_phone.*, part_svc.*',
21 'count_query' => 'SELECT COUNT(*) FROM svc_phone WHERE circuit_svcnum = '.
23 'header' => [ '#', 'Service', 'Phone number', ],
24 'fields' => [ 'svcnum', 'svc', 'phonenum' ],
25 'links' => [ $link, $link, $link ],
28 'html_form' => '<SPAN CLASS="fsinnerbox-title">Phone services</SPAN>',
31 'disable_maxselect' => 1,
32 'really_disable_download' => 1,
41 { field => 'providernum',
42 type => 'select-table',
43 table => 'circuit_provider',
44 name_col => 'provider',
47 type => 'select-table',
48 table => 'circuit_type',
49 name_col => 'typename',
52 type => 'select-table',
53 table => 'circuit_termination',
54 name_col => 'termination',
56 qw( vendor_qual_id vendor_order_id vendor_order_type vendor_order_status ),
57 { field => 'desired_due_date', type => 'date' },
58 { field => 'due_date', type => 'date' },
60 { field => 'endpoint_mac_addr', type => 'mac_addr' },
61 'internal_circuit_id',
66 circuit_id => 'Provider Circuit ID',
67 providernum => 'Provider',
68 typenum => 'Circuit type',
69 termnum => 'Termination',
70 vendor_qual_id => 'Qualification ID',
71 vendor_order_id => 'Order ID',
72 vendor_order_type => 'Order type',
73 vendor_order_status => 'Order status',
74 desired_due_date => 'Desired due date',
75 due_date => 'Due date',
76 endpoint_ip_addr => 'Endpoint IP address',
77 endpoint_mac_addr => 'MAC address',
78 internal_circuit_id => 'Internal Circuit Id',
81 my $self = $m->request_comp;