1 %if ( $columnflag eq 'F' || !keys(%svc_pbx) ) {
2 <INPUT TYPE="hidden" NAME="<% $opt{'element_name'} || $opt{'field'} || 'pbxsvc' %>" VALUE="<% $pbxsvc %>">
6 <TD ALIGN="right"><% $opt{'label'} || 'PBX' %></TD>
8 <% include('/elements/select-svc_pbx.html',
9 'curr_value' => $pbxsvc,
10 'part_svc' => $part_svc,
11 'cust_pkg' => $cust_pkg,
19 # false laziness w/tr-select-svc_acct-domain.html
23 my $pbxsvc = $opt{'curr_value'};
26 my $part_svc = $opt{'part_svc'}
27 || qsearchs('part_svc', { 'svcpart' => $opt{'svcpart'} });
29 $part_svc ? $part_svc->svcpart : '';
31 $part_svc ? $part_svc->part_svc_column('pbxsvc')->columnflag : '';
34 my $cust_pkg = $opt{'cust_pkg'};
35 $cust_pkg ||= qsearchs('cust_pkg', { 'pkgnum' => $opt{'pkgnum'} })
38 # false laziness w/select-svc_pbx.html
40 my $pkgnum = $cust_pkg ? $cust_pkg->pkgnum : '';
45 my $svc_pbx = qsearchs('svc_pbx', { 'svcnum' => $pbxsvc } );
47 $svc_pbx{$svc_pbx->svcnum} = $svc_pbx;
49 warn "unknown svc_pbx.svcnum for svc_acct.pbxsvc: $pbxsvc";
55 FS::svc_Common->pbx_select_hash( 'svcpart' => $svcpart,