[freeside-commits] freeside/httemplate/misc svc_acct-domains.cgi,
NONE, 1.1
Jeff Finucane,420,,
jeff at wavetail.420.am
Wed Feb 14 15:32:24 PST 2007
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail:/tmp/cvs-serv14661/httemplate/misc
Added Files:
svc_acct-domains.cgi
Log Message:
selectable domain on first package in edit/cust_main
--- NEW FILE: svc_acct-domains.cgi ---
%
%
% my $pkgpart_svcpart = $cgi->param('arg');
% $pkgpart_svcpart =~ /^\d+_(\d+)$/;
% my $part_svc = qsearchs('part_svc', { 'svcpart' => $1 }) if $1;
% my $part_svc_column = $part_svc->part_svc_column('domsvc');
%
% my @output = split /,/, $part_svc_column->columnvalue;
% my @svc_domain = ();
% my %seen = ();
%
% foreach (@output) {
% my $svc_domain = qsearchs('svc_domain', { 'svcnum' => $_ })
% or warn "unknown svc_domain.svcnum $_ for part_svc_column domsvc; ".
% "svcpart = " . $part_svc->svcpart;
% push @svc_domain, [ $_ => $svc_domain->domain ];
% $seen{$_}++;
% }
% if ($part_svc_column->columnflag eq 'D' || $part_svc_column->columnflag eq '') {
% foreach (grep { $_->svcnum ne $output[0] } qsearch('svc_domain', {}) ){
% push @svc_domain, [ $_->svcnum => $_->domain ];
% }
% }
%
[ <% join(', ', map { qq("$_->[0]", "$_->[1]") } @svc_domain) %> ]
More information about the freeside-commits
mailing list