1 % if ( $columnflag eq 'F' ) { # no good reason for this, but support it anyway
2 <INPUT TYPE="hidden" NAME="circuit_svcnum" VALUE="<% $circuit_svcnum %>">
4 <& tr-select-table.html,
5 'table' => 'svc_circuit',
6 'name_col' => 'circuit_id',
17 if ( $opt{'curr_value'} =~ /^(\d+)$/ ) {
21 # generally not the svcpart of the circuit service (or any circuit service)
22 my $part_svc = $opt{'part_svc'}
23 || qsearchs('part_svc', { 'svcpart' => $opt{'svcpart'} });
25 my $columnflag = $part_svc->part_svc_column('circuit_svcnum')->columnflag;
27 my $cust_pkg = $opt{'cust_pkg'};
29 $custnum = $cust_pkg->custnum if $cust_pkg;
32 if ( $custnum =~ /^(\d+)$/ ) {
34 'addl_from' => ' LEFT JOIN cust_svc USING (svcnum)' .
35 ' LEFT JOIN cust_pkg USING (pkgnum)',
36 'extra_sql' => " WHERE cust_pkg.custnum = $custnum".
37 " OR svcnum = $circuit_svcnum",