X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=fs_signup%2Ffs_signup_server;fp=fs_signup%2Ffs_signup_server;h=38ad5583f710d8c9bce8441a060d18845810489e;hp=1618cf1fefa190767cea410d571e4c17525b7641;hb=a28e2731a7febc2a96bb11ed4ce165808bd8b8d9;hpb=98a73bb080f55f4f5d850102bcec6da2807e3d4f diff --git a/fs_signup/fs_signup_server b/fs_signup/fs_signup_server index 1618cf1fe..38ad5583f 100755 --- a/fs_signup/fs_signup_server +++ b/fs_signup/fs_signup_server @@ -73,6 +73,19 @@ while (1) { qsearch( 'part_pkg', { 'disabled' => '' } ) ], + 'agentnum2part_pkg' => + { + map { + my $href = $_->pkgpart_hashref; + $_->agentnum => + [ + map { { 'payby' => [ $_->payby ], %{$_->hashref} } } + grep { $_->svcpart('svc_acct') && $href->{ $_->pkgpart } } + qsearch( 'part_pkg', { 'disabled' => '' } ) + ]; + } qsearch('agent', {} ) + }, + 'svc_acct_pop' => [ map { $_->hashref } @pops ], 'security_phrase' => $conf->exists('security_phrase'),