4 use vars qw( @ISA $DEBUG );
6 use FS::Record qw( qsearch qsearchs fields dbh );
7 use FS::Schema qw( dbdef );
8 use FS::part_svc_column;
12 use FS::part_svc_class;
14 @ISA = qw(FS::Record);
20 FS::part_svc - Object methods for part_svc objects
26 $record = new FS::part_svc \%hash
27 $record = new FS::part_svc { 'column' => 'value' };
29 $error = $record->insert;
30 $error = $record->insert( [ 'pseudofield' ] );
31 $error = $record->insert( [ 'pseudofield' ], \%exportnums );
33 $error = $new_record->replace($old_record);
34 $error = $new_record->replace($old_record, '1.3-COMPAT', [ 'pseudofield' ] );
35 $error = $new_record->replace($old_record, '1.3-COMPAT', [ 'pseudofield' ], \%exportnums );
37 $error = $record->delete;
39 $error = $record->check;
43 An FS::part_svc represents a service definition. FS::part_svc inherits from
44 FS::Record. The following fields are currently supported:
48 =item svcpart - primary key (assigned automatically for new service definitions)
50 =item svc - text name of this service definition
52 =item svcdb - table used for this service. See L<FS::svc_acct>,
53 L<FS::svc_domain>, and L<FS::svc_forward>, among others.
55 =item classnum - Optional service class (see L<FS::svc_class>)
57 =item disabled - Disabled flag, empty or `Y'
59 =item preserve - Preserve after cancellation, empty or 'Y'
61 =item selfservice_access - Access allowed to the service via self-service:
62 empty for full access, "readonly" for read-only, "hidden" to hide it entirely
64 =item restrict_edit_password - Require the "Provision customer service" access
65 right to change the password field, rather than just "Edit password". Only
66 relevant to svc_acct for now.
68 =item has_router - Allow the service to have an L<FS::router> connected
69 through it. Probably only relevant to svc_broadband, svc_acct, and svc_dsl
80 Creates a new service definition. To add the service definition to the
81 database, see L<"insert">.
85 sub table { 'part_svc'; }
87 =item insert [ EXTRA_FIELDS_ARRAYREF [ , EXPORTNUMS_HASHREF [ , JOB ] ] ]
89 Adds this service definition to the database. If there is an error, returns
90 the error, otherwise returns false.
92 The following pseudo-fields may be defined, and will be maintained in
93 the part_svc_column table appropriately (see L<FS::part_svc_column>).
97 =item I<svcdb>__I<field> - Default or fixed value for I<field> in I<svcdb>.
99 =item I<svcdb>__I<field>_label
101 =item I<svcdb>__I<field>_flag - defines I<svcdb>__I<field> action: null or empty (no default), `D' for default, `F' for fixed (unchangeable), , `S' for selectable choice, `M' for manual selection from inventory, or `A' for automatic selection from inventory. For virtual fields, can also be 'X' for excluded.
103 =item I<svcdb>__I<field>_required - I<field> should always have a true value
107 If you want to add part_svc_column records for fields that do not exist as
108 fields in the I<svcdb> table, make sure to list then in
109 EXTRA_FIELDS_ARRAYREF also.
111 If EXPORTNUMS_HASHREF is specified (keys are exportnums and values are
112 boolean), the appopriate export_svc records will be inserted.
121 @fields = @{shift(@_)} if @_;
122 my $exportnums = shift || {};
126 local $SIG{HUP} = 'IGNORE';
127 local $SIG{INT} = 'IGNORE';
128 local $SIG{QUIT} = 'IGNORE';
129 local $SIG{TERM} = 'IGNORE';
130 local $SIG{TSTP} = 'IGNORE';
131 local $SIG{PIPE} = 'IGNORE';
133 my $oldAutoCommit = $FS::UID::AutoCommit;
134 local $FS::UID::AutoCommit = 0;
137 my $error = $self->SUPER::insert;
139 $dbh->rollback if $oldAutoCommit;
143 # add part_svc_column records
145 my $svcdb = $self->svcdb;
146 # my @rows = map { /^${svcdb}__(.*)$/; $1 }
148 # grep /^${svcdb}__/,
149 # fields('part_svc');
151 grep { $_ ne 'svcnum'
152 && ( defined( $self->getfield($svcdb.'__'.$_.'_flag') )
153 || defined($self->getfield($svcdb.'__'.$_.'_required'))
154 || $self->getfield($svcdb.'__'.$_.'_label') !~ /^\s*$/ )
155 } (fields($svcdb), @fields)
157 my $part_svc_column = $self->part_svc_column($field);
158 my $previous = qsearchs('part_svc_column', {
159 'svcpart' => $self->svcpart,
160 'columnname' => $field,
163 my $flag = $self->getfield($svcdb.'__'.$field.'_flag');
164 my $label = $self->getfield($svcdb.'__'.$field.'_label');
165 my $required = $self->getfield($svcdb.'__'.$field.'_required') ? 'Y' : '';
166 if ( uc($flag) =~ /^([A-Z])$/ || $label !~ /^\s*$/ ) {
168 if ( uc($flag) =~ /^([A-Z])$/ ) {
169 my $parser = FS::part_svc->svc_table_fields($svcdb)->{$field}->{parse}
171 $part_svc_column->setfield('columnflag', $1);
172 $part_svc_column->setfield('columnvalue',
173 &$parser($self->getfield($svcdb.'__'.$field))
177 $part_svc_column->setfield('columnlabel', $label)
178 if $label !~ /^\s*$/;
180 $part_svc_column->setfield('required', $required);
183 $error = $part_svc_column->replace($previous);
185 $error = $part_svc_column->insert;
189 $error = $previous ? $previous->delete : '';
192 $dbh->rollback if $oldAutoCommit;
198 # add export_svc records
199 my @exportnums = grep $exportnums->{$_}, keys %$exportnums;
200 my $slice = 100/scalar(@exportnums) if @exportnums;
202 foreach my $exportnum ( @exportnums ) {
203 my $export_svc = new FS::export_svc ( {
204 'exportnum' => $exportnum,
205 'svcpart' => $self->svcpart,
206 'role' => $exportnums->{$exportnum},
208 $error = $export_svc->insert($job, $slice*$done++, $slice);
210 $dbh->rollback if $oldAutoCommit;
215 # XXX shouldn't this update fixed values?
217 $dbh->commit or die $dbh->errstr if $oldAutoCommit;
224 Currently unimplemented. Set the "disabled" field instead.
229 return "Can't (yet?) delete service definitions.";
230 # check & make sure the svcpart isn't in cust_svc or pkg_svc (in any packages)?
233 =item replace OLD_RECORD [ '1.3-COMPAT' [ , EXTRA_FIELDS_ARRAYREF [ , EXPORTNUMS_HASHREF [ , JOB ] ] ] ]
235 Replaces OLD_RECORD with this one in the database. If there is an error,
236 returns the error, otherwise returns false.
240 TODOC: EXTRA_FIELDS_ARRAYREF (same as insert method)
247 my ( $new, $old ) = ( shift, shift );
252 if ( @_ && $_[0] eq '1.3-COMPAT' ) {
255 @fields = @{shift(@_)} if @_;
256 $exportnums = @_ ? shift : '';
259 return 'non-1.3-COMPAT interface not yet written';
263 return "Can't change svcdb for an existing service definition!"
264 unless $old->svcdb eq $new->svcdb;
266 local $SIG{HUP} = 'IGNORE';
267 local $SIG{INT} = 'IGNORE';
268 local $SIG{QUIT} = 'IGNORE';
269 local $SIG{TERM} = 'IGNORE';
270 local $SIG{TSTP} = 'IGNORE';
271 local $SIG{PIPE} = 'IGNORE';
273 my $oldAutoCommit = $FS::UID::AutoCommit;
274 local $FS::UID::AutoCommit = 0;
277 my $error = $new->SUPER::replace( $old );
279 $dbh->rollback if $oldAutoCommit;
283 if ( $compat eq '1.3' ) {
285 # maintain part_svc_column records
287 my $svcdb = $new->svcdb;
289 grep { $_ ne 'svcnum'
290 && ( defined( $new->getfield($svcdb.'__'.$_.'_flag') )
291 || defined($new->getfield($svcdb.'__'.$_.'_required'))
292 || $new->getfield($svcdb.'__'.$_.'_label') !~ /^\s*$/ )
293 } (fields($svcdb),@fields)
296 my $part_svc_column = $new->part_svc_column($field);
297 my $previous = qsearchs('part_svc_column', {
298 'svcpart' => $new->svcpart,
299 'columnname' => $field,
302 my $flag = $new->getfield($svcdb.'__'.$field.'_flag');
303 my $label = $new->getfield($svcdb.'__'.$field.'_label');
304 my $required = $new->getfield($svcdb.'__'.$field.'_required') ? 'Y' : '';
306 if ( uc($flag) =~ /^([A-Z])$/ || $label !~ /^\s*$/ ) {
308 if ( uc($flag) =~ /^([A-Z])$/ ) {
309 $part_svc_column->setfield('columnflag', $1);
310 my $parser = FS::part_svc->svc_table_fields($svcdb)->{$field}->{parse}
312 $part_svc_column->setfield('columnvalue',
313 &$parser($new->getfield($svcdb.'__'.$field))
316 $part_svc_column->setfield('columnflag', '');
317 $part_svc_column->setfield('columnvalue', '');
320 $part_svc_column->setfield('columnlabel', $label)
321 if $label !~ /^\s*$/;
323 $part_svc_column->setfield('required', $required);
326 $error = $part_svc_column->replace($previous);
328 $error = $part_svc_column->insert;
331 $error = $previous ? $previous->delete : '';
334 $dbh->rollback if $oldAutoCommit;
339 # maintain export_svc records
341 if ( $exportnums ) { # hash of exportnum => role
343 #false laziness w/ edit/process/agent_type.cgi
344 #and, more importantly, with m2m_Common
345 my @new_export_svc = ();
346 foreach my $part_export ( qsearch('part_export', {}) ) {
347 my $exportnum = $part_export->exportnum;
349 'exportnum' => $exportnum,
350 'svcpart' => $new->svcpart,
352 my $export_svc = qsearchs('export_svc', $hashref);
355 my $old_role = $export_svc->role || 1; # 1 = null in the db
356 if ( ! $exportnums->{$exportnum}
357 or $old_role ne $exportnums->{$exportnum} ) {
359 $error = $export_svc->delete;
361 $dbh->rollback if $oldAutoCommit;
364 undef $export_svc; # on a role change, force it to be reinserted
368 if ( ! $export_svc && $exportnums->{$exportnum} ) {
369 # also applies if it's been undef'd because of role change
370 $hashref->{role} = $exportnums->{$exportnum};
371 push @new_export_svc, new FS::export_svc ( $hashref );
376 my $slice = 100/scalar(@new_export_svc) if @new_export_svc;
378 foreach my $export_svc (@new_export_svc) {
379 $error = $export_svc->insert($job, $slice*$done++, $slice);
381 $dbh->rollback if $oldAutoCommit;
385 $error = $job->update_statustext( int( $slice * $done ) );
387 $dbh->rollback if $oldAutoCommit;
396 $dbh->rollback if $oldAutoCommit;
397 return 'non-1.3-COMPAT interface not yet written';
401 $dbh->commit or die $dbh->errstr if $oldAutoCommit;
408 Checks all fields to make sure this is a valid service definition. If there is
409 an error, returns the error, otherwise returns false. Called by the insert
419 $self->ut_numbern('svcpart')
420 || $self->ut_text('svc')
421 || $self->ut_alpha('svcdb')
422 || $self->ut_flag('disabled')
423 || $self->ut_flag('preserve')
424 || $self->ut_enum('selfservice_access', [ '', 'hidden', 'readonly' ] )
425 || $self->ut_foreign_keyn('classnum', 'part_svc_class', 'classnum' )
426 || $self->ut_flag('restrict_edit_password')
427 || $self->ut_flag('has_router')
429 return $error if $error;
431 my @fields = eval { fields( $self->svcdb ) }; #might die
432 return "Unknown svcdb: ". $self->svcdb. " (Error: $@)"
438 =item part_svc_column COLUMNNAME
440 Returns the part_svc_column object (see L<FS::part_svc_column>) for the given
441 COLUMNNAME, or a new part_svc_column object if none exists.
445 sub part_svc_column {
446 my( $self, $columnname) = @_;
448 qsearchs('part_svc_column', {
449 'svcpart' => $self->svcpart,
450 'columnname' => $columnname,
452 ) or new FS::part_svc_column {
453 'svcpart' => $self->svcpart,
454 'columnname' => $columnname,
458 =item all_part_svc_column
462 sub all_part_svc_column {
464 qsearch('part_svc_column', { 'svcpart' => $self->svcpart } );
467 =item part_export [ EXPORTTYPE ]
469 Returns a list of all exports (see L<FS::part_export>) for this service, or,
470 if an export type is specified, only returns exports of the given type.
477 $search{'exporttype'} = shift if @_;
478 map { $_ } #behavior of sort undefined in scalar context
479 sort { $a->weight <=> $b->weight }
480 map { qsearchs('part_export', { 'exportnum'=>$_->exportnum, %search } ) }
481 qsearch('export_svc', { 'svcpart'=>$self->svcpart } );
484 =item part_export_usage
486 Returns a list of any exports (see L<FS::part_export>) for this service that
487 are capable of reporting usage information.
491 sub part_export_usage {
493 grep $_->can('usage_sessions'), $self->part_export;
496 =item part_export_did
498 Returns a list of any exports (see L<FS::part_export>) for this service that
499 are capable of returing available DID (phone number) information.
503 sub part_export_did {
505 grep $_->can('get_dids'), $self->part_export;
508 =item part_export_dsl_pull
510 Returns a list of any exports (see L<FS::part_export>) for this service that
511 are capable of pulling/pushing DSL orders.
515 sub part_export_dsl_pull {
517 grep $_->can('dsl_pull'), $self->part_export;
520 =item cust_svc [ PKGPART ]
522 Returns a list of associated customer services (FS::cust_svc records).
524 If a PKGPART is specified, returns the customer services which are contained
525 within packages of that type (see L<FS::part_pkg>). If PKGPARTis specified as
526 B<0>, returns unlinked customer services.
533 my $hashref = { 'svcpart' => $self->svcpart };
535 my( $addl_from, $extra_sql ) = ( '', '' );
538 if ( $pkgpart =~ /^(\d+)$/ ) {
539 $addl_from = 'LEFT JOIN cust_pkg USING ( pkgnum )';
540 $extra_sql = "AND pkgpart = $1";
541 } elsif ( $pkgpart eq '0' ) {
542 $hashref->{'pkgnum'} = '';
547 'table' => 'cust_svc',
548 'addl_from' => $addl_from,
549 'hashref' => $hashref,
550 'extra_sql' => $extra_sql,
554 =item num_cust_svc [ PKGPART ]
556 Returns the number of associated customer services (FS::cust_svc records).
558 If a PKGPART is specified, returns the number of customer services which are
559 contained within packages of that type (see L<FS::part_pkg>). If PKGPART
560 is specified as B<0>, returns the number of unlinked customer services.
567 my @param = ( $self->svcpart );
569 my( $join, $and ) = ( '', '' );
573 $join = 'LEFT JOIN cust_pkg USING ( pkgnum )';
574 $and = 'AND pkgpart = ?';
575 push @param, $pkgpart;
576 } elsif ( $pkgpart eq '0' ) {
577 $and = 'AND pkgnum IS NULL';
581 my $sth = dbh->prepare(
582 "SELECT COUNT(*) FROM cust_svc $join WHERE svcpart = ? $and"
583 ) or die dbh->errstr;
584 $sth->execute(@param)
586 $sth->fetchrow_arrayref->[0];
591 Returns a list of associated FS::svc_* records.
597 map { $_->svc_x } $self->cust_svc;
611 return $svc_defs if $svc_defs; #cache
613 my $conf = new FS::Conf;
615 #false laziness w/part_pkg.pm::plan_info
618 foreach my $INC ( @INC ) {
619 warn "globbing $INC/FS/svc_*.pm\n" if $DEBUG;
620 foreach my $file ( glob("$INC/FS/svc_*.pm") ) {
622 warn "attempting to load service table info from $file\n" if $DEBUG;
623 $file =~ /\/(\w+)\.pm$/ or do {
624 warn "unrecognized file in $INC/FS/: $file\n";
629 if ( $mod =~ /^svc_[A-Z]/ or $mod =~ /^(svc_acct_pop|svc_export_machine)$/ ) {
630 warn "skipping FS::$mod" if $DEBUG;
634 eval "use FS::$mod;";
636 die "error using FS::$mod (skipping): $@\n" if $@;
639 unless ( UNIVERSAL::can("FS::$mod", 'table_info') ) {
640 warn "FS::$mod has no table_info method; skipping";
644 my $info = "FS::$mod"->table_info;
645 unless ( keys %$info ) {
646 warn "FS::$mod->table_info doesn't return info, skipping\n";
649 warn "got info from FS::$mod: $info\n" if $DEBUG;
650 if ( exists($info->{'disabled'}) && $info->{'disabled'} ) {
651 warn "skipping disabled service FS::$mod" if $DEBUG;
658 tie my %svc_defs, 'Tie::IxHash',
659 map { $_ => $info{$_}->{'fields'} }
660 sort { $info{$a}->{'display_weight'} <=> $info{$b}->{'display_weight'} }
664 $svc_defs = \%svc_defs; #cache
670 Returns a list of all svc_ tables.
676 my $svc_defs = $class->_svc_defs;
677 grep { defined( dbdef->table($_) ) } keys %$svc_defs;
680 =item svc_table_fields TABLE
682 Given a table name, returns a hashref of field names. The field names
683 returned are those with additional (service-definition related) information,
684 not necessarily all database fields of the table. Pseudo-fields may also
685 be returned (i.e. svc_acct.usergroup).
687 Each value of the hashref is another hashref, which can have one or more of
692 =item label - Description of the field
694 =item def_label - Optional description of the field in the context of service definitions
696 =item type - Currently "text", "select", "checkbox", "textarea", "disabled",
697 some components specified by "select-.*.html", and a bunch more...
699 =item disable_default - This field should not allow a default value in service definitions
701 =item disable_fixed - This field should not allow a fixed value in service definitions
703 =item disable_inventory - This field should not allow inventory values in service definitions
705 =item select_list - If type is "text", this can be a listref of possible values.
707 =item select_table - An alternative to select_list, this defines a database table with the possible choices.
709 =item select_key - Used with select_table, this is the field name of keys
711 =item select_label - Used with select_table, this is the field name of labels
713 =item select_allow_empty - Used with select_table, adds an empty option
715 =item required - This field should always have a true value (do not use with type checkbox or disabled)
721 #maybe this should move and be a class method in svc_Common.pm
722 sub svc_table_fields {
723 my($class, $table) = @_;
724 my $svc_defs = $class->_svc_defs;
725 my $def = $svc_defs->{$table};
727 foreach ( grep !ref($def->{$_}), keys %$def ) {
729 #normalize the shortcut in %info hash
730 $def->{$_} = { 'label' => $def->{$_} };
732 $def->{$_}{'type'} ||= 'text';
747 Job-queue processor for web interface adds/edits
751 use Storable qw(thaw);
757 my $param = thaw(decode_base64(shift));
758 warn Dumper($param) if $DEBUG;
760 my $old = qsearchs('part_svc', { 'svcpart' => $param->{'svcpart'} })
761 if $param->{'svcpart'};
763 #unmunge cgp_accessmodes (falze laziness-ish w/edit/process/svc_acct.cgi)
764 $param->{'svc_acct__cgp_accessmodes'} ||=
766 grep { $_ !~ /^(flag|label)$/ }
767 map { /^svc_acct__cgp_accessmodes_([\w\/]+)$/ or die "no way"; $1; }
769 grep /^svc_acct__cgp_accessmodes_([\w\/]+)$/,
774 my $new = new FS::part_svc ( {
777 # } qw(svcpart svc svcdb)
778 } ( fields('part_svc'),
779 map { my $svcdb = $_;
780 my @fields = fields($svcdb);
781 push @fields, 'usergroup' if $svcdb eq 'svc_acct'
782 or $svcdb eq 'svc_broadband'; #kludge
785 my $f = $svcdb.'__'.$_;
786 my $flag = $param->{ $f.'_flag' } || ''; #silence warnings
787 if ( $flag =~ /^[MAH]$/ ) {
788 $param->{ $f } = delete( $param->{ $f.'_classnum' } );
790 if ( ( $flag =~ /^[MAHS]$/ or $_ eq 'usergroup' )
791 and ref($param->{ $f }) ) {
792 $param->{ $f } = join(',', @{ $param->{ $f } });
794 ( $f, $f.'_flag', $f.'_label', $f.'_required' );
798 } FS::part_svc->svc_tables()
803 map { $_->exportnum => ( $param->{'exportnum'.$_->exportnum} || '') }
804 qsearch('part_export', {} );
805 foreach my $exportnum (%exportnums) {
806 my $role = $param->{'exportnum'.$exportnum.'_role'};
807 # role is undef if the export has no role selector
808 if ( $exportnums{$exportnum} && $role ) {
809 $exportnums{$exportnum} = $role;
813 if ( $param->{'svcpart'} ) {
814 $error = $new->replace( $old,
815 '1.3-COMPAT', #totally bunk, as jeff noted
821 $error = $new->insert( [ 'usergroup' ],
825 $param->{'svcpart'} = $new->getfield('svcpart');
828 die "$error\n" if $error;
831 =item process_bulk_cust_svc
833 Job-queue processor for web interface bulk customer service changes
837 use Storable qw(thaw);
840 sub process_bulk_cust_svc {
843 my $param = thaw(decode_base64(shift));
844 warn Dumper($param) if $DEBUG;
846 local($FS::svc_Common::noexport_hack) = 1
847 if $param->{'noexport'};
850 qsearchs('part_svc', { 'svcpart' => $param->{'old_svcpart'} } );
852 die "Must select a new service definition\n" unless $param->{'new_svcpart'};
854 #the rest should be abstracted out to to its own subroutine?
856 local $SIG{HUP} = 'IGNORE';
857 local $SIG{INT} = 'IGNORE';
858 local $SIG{QUIT} = 'IGNORE';
859 local $SIG{TERM} = 'IGNORE';
860 local $SIG{TSTP} = 'IGNORE';
861 local $SIG{PIPE} = 'IGNORE';
863 my $oldAutoCommit = $FS::UID::AutoCommit;
864 local $FS::UID::AutoCommit = 0;
867 local( $FS::cust_svc::ignore_quantity ) = 1;
869 my $total = $old_part_svc->num_cust_svc( $param->{'pkgpart'} );
872 foreach my $old_cust_svc ( $old_part_svc->cust_svc( $param->{'pkgpart'} ) ) {
874 my $new_cust_svc = new FS::cust_svc { $old_cust_svc->hash };
876 $new_cust_svc->svcpart( $param->{'new_svcpart'} );
877 my $error = $new_cust_svc->replace($old_cust_svc);
879 $dbh->rollback if $oldAutoCommit;
880 die "$error\n" if $error;
883 $error = $job->update_statustext( int( 100 * ++$n / $total ) );
885 $dbh->rollback if $oldAutoCommit;
886 die $error if $error;
891 $dbh->commit or die $dbh->errstr if $oldAutoCommit;
897 sub _upgrade_data { #class method
898 my ($class, %opts) = @_;
900 my @part_svc_column = qsearch('part_svc_column', { 'columnname' => 'usergroup' });
901 foreach my $col ( @part_svc_column ) {
902 next if $col->columnvalue =~ /^[\d,]+$/ || !$col->columnvalue;
903 my @groupnames = split(',',$col->columnvalue);
906 foreach my $groupname ( @groupnames ) {
907 my $g = qsearchs('radius_group', { 'groupname' => $groupname } );
909 $g = new FS::radius_group {
910 'groupname' => $groupname,
911 'description' => $groupname,
914 die "Error inserting new radius_group for service definition group \"$groupname\": $error"
917 push @groupnums, $g->groupnum;
919 $col->columnvalue(join(',',@groupnums));
920 $error = $col->replace;
921 die $error if $error;
924 my @badlabels = qsearch({
925 'table' => 'part_svc_column',
927 'extra_sql' => 'WHERE columnlabel IN ('.
928 "'Descriptive label for this particular device.',".
929 "'IP address. Leave blank for automatic assignment.',".
930 "'Maximum upload speed for this service in Kbps. 0 denotes unlimited.',".
931 "'Maximum download speed for this service in Kbps. 0 denotes unlimited.')"
933 foreach my $col ( @badlabels ) {
934 $col->columnlabel('');
935 my $error = $col->replace;
936 die $error if $error;
943 Delete is unimplemented.
945 The list of svc_* tables is no longer hardcoded, but svc_acct_pop is skipped
946 as a special case until it is renamed.
948 all_part_svc_column methods should be documented
952 L<FS::Record>, L<FS::part_svc_column>, L<FS::part_pkg>, L<FS::pkg_svc>,
953 L<FS::cust_svc>, L<FS::svc_acct>, L<FS::svc_forward>, L<FS::svc_domain>,
954 schema.html from the base documentation.