1 <SELECT NAME="domsvc" SIZE=1>
3 % sort { $svc_domain{$a} cmp $svc_domain{$b} }
6 % my $svc_domain = $svc_domain{$svcnum};
7 % my $selected = ($svcnum == $domsvc) ? ' SELECTED' : ''
9 <OPTION VALUE="<% $svcnum %>" <% $selected %>><% $svc_domain{$svcnum} %>
18 my $domsvc = $opt{'curr_value'};
19 my $part_svc = $opt{'part_svc'}
20 || qsearchs('part_svc', { 'svcpart' => $opt{'svcpart'} });
23 my $cust_pkg = $opt{'cust_pkg'};
24 $cust_pkg ||= qsearchs('cust_pkg', { 'pkgnum' => $opt{'pkgnum'} })
27 my $pkgnum = $cust_pkg ? $cust_pkg->pkgnum : '';
32 my $svc_domain = qsearchs('svc_domain', { 'svcnum' => $domsvc } );
34 $svc_domain{$svc_domain->svcnum} = $svc_domain;
36 warn "unknown svc_domain.svcnum for svc_acct.domsvc: $domsvc";
42 FS::svc_acct->domain_select_hash( 'svcpart' => $part_svc->svcpart,