1 [ <% join(', ', map { qq("$_->[0]", "$_->[1]") } @svc_domain) %> ]
4 my $conf = new FS::Conf;
6 my $pkgpart_svcpart = $cgi->param('arg');
7 $pkgpart_svcpart =~ /^\d+_(\d+)$/;
8 my $part_svc = qsearchs('part_svc', { 'svcpart' => $1 }) if $1;
9 my $part_svc_column = $part_svc->part_svc_column('domsvc') if $part_svc;
11 my @output = split /,/, $part_svc_column->columnvalue if $part_svc_column;
12 my $columnflag = $part_svc_column->columnflag if $part_svc_column;
17 my $svc_domain = qsearchs('svc_domain', { 'svcnum' => $_ })
18 or warn "unknown svc_domain.svcnum $_ for part_svc_column domsvc; ".
19 "svcpart = " . $part_svc->svcpart;
20 push @svc_domain, [ $_ => $svc_domain->domain ];
23 if ($conf->exists('svc_acct-alldomains')
24 && ( $columnflag eq 'D' || $columnflag eq '' )
26 foreach (grep { $_->svcnum ne $output[0] } qsearch('svc_domain', {}) ){
27 push @svc_domain, [ $_->svcnum => $_->domain ];