svc-acct-alldomains config file allows selection of accounts from any domain
authorivan <ivan>
Mon, 14 Oct 2002 07:30:30 +0000 (07:30 +0000)
committerivan <ivan>
Mon, 14 Oct 2002 07:30:30 +0000 (07:30 +0000)
FS/FS/Conf.pm
httemplate/edit/svc_acct.cgi

index 204d26a..c4d1a39 100644 (file)
@@ -975,6 +975,13 @@ httemplate/docs/config.html
     'select_enum' => [ 'Password', 'User-Password' ],
   },
 
+  {
+    'key'         => 'svc_acct-alldomains',
+    'section'     => '',
+    'description' => 'Allow accounts to select any domain in the database.  Normally accounts can only select from the domain set in the service definition and those purchased by the customer.',
+    'type'        => 'bool',
+  },
+
 );
 
 1;
index 90b2632..c27bab8 100755 (executable)
@@ -163,7 +163,7 @@ if ( $part_svc->part_svc_column('domsvc')->columnflag eq 'F' ) {
   }
 
   my $cust_pkg = qsearchs('cust_pkg', { 'pkgnum' => $pkgnum } );
-  if ($cust_pkg) {
+  if ($cust_pkg && !$conf->exists('svc_acct-alldomains') ) {
     my @cust_svc =
       map { qsearch('cust_svc', { 'pkgnum' => $_->pkgnum } ) }
           qsearch('cust_pkg', { 'custnum' => $cust_pkg->custnum } );