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 foreach my $field (fields($svcdb), @fields) {
147 next if $field eq 'svcnum';
148 my $prefix = $svcdb.'__';
149 if ( defined( $self->getfield($prefix.$field.'_flag'))
150 or defined($self->getfield($prefix.$field.'_required'))
151 or length($self->getfield($prefix.$field.'_label'))
153 my $part_svc_column = $self->part_svc_column($field);
154 my $previous = qsearchs('part_svc_column', {
155 'svcpart' => $self->svcpart,
156 'columnname' => $field,
159 my $flag = $self->getfield($prefix.$field.'_flag');
160 my $label = $self->getfield($prefix.$field.'_label');
161 my $required = $self->getfield($prefix.$field.'_required') ? 'Y' : '';
162 if ( uc($flag) =~ /^([A-Z])$/ || $label !~ /^\s*$/ ) {
164 if ( uc($flag) =~ /^([A-Z])$/ ) {
165 my $parser = FS::part_svc->svc_table_fields($svcdb)->{$field}->{parse}
167 $part_svc_column->setfield('columnflag', $1);
168 $part_svc_column->setfield('columnvalue',
169 &$parser($self->getfield($prefix.$field))
173 $part_svc_column->setfield('columnlabel', $label)
174 if $label !~ /^\s*$/;
176 $part_svc_column->setfield('required', $required);
179 $error = $part_svc_column->replace($previous);
181 $error = $part_svc_column->insert;
185 $error = $previous ? $previous->delete : '';
188 $dbh->rollback if $oldAutoCommit;
195 # add export_svc records
196 my @exportnums = grep $exportnums->{$_}, keys %$exportnums;
197 my $slice = 100/scalar(@exportnums) if @exportnums;
199 foreach my $exportnum ( @exportnums ) {
200 my $export_svc = new FS::export_svc ( {
201 'exportnum' => $exportnum,
202 'svcpart' => $self->svcpart,
203 'role' => $exportnums->{$exportnum},
205 $error = $export_svc->insert($job, $slice*$done++, $slice);
207 $dbh->rollback if $oldAutoCommit;
212 # XXX shouldn't this update fixed values?
214 $dbh->commit or die $dbh->errstr if $oldAutoCommit;
221 Currently unimplemented. Set the "disabled" field instead.
226 return "Can't (yet?) delete service definitions.";
227 # check & make sure the svcpart isn't in cust_svc or pkg_svc (in any packages)?
230 =item replace OLD_RECORD [ '1.3-COMPAT' [ , EXTRA_FIELDS_ARRAYREF [ , EXPORTNUMS_HASHREF [ , JOB ] ] ] ]
232 Replaces OLD_RECORD with this one in the database. If there is an error,
233 returns the error, otherwise returns false.
237 TODOC: EXTRA_FIELDS_ARRAYREF (same as insert method)
244 my ( $new, $old ) = ( shift, shift );
249 if ( @_ && $_[0] eq '1.3-COMPAT' ) {
252 @fields = @{shift(@_)} if @_;
253 $exportnums = @_ ? shift : '';
256 return 'non-1.3-COMPAT interface not yet written';
260 return "Can't change svcdb for an existing service definition!"
261 unless $old->svcdb eq $new->svcdb;
263 local $SIG{HUP} = 'IGNORE';
264 local $SIG{INT} = 'IGNORE';
265 local $SIG{QUIT} = 'IGNORE';
266 local $SIG{TERM} = 'IGNORE';
267 local $SIG{TSTP} = 'IGNORE';
268 local $SIG{PIPE} = 'IGNORE';
270 my $oldAutoCommit = $FS::UID::AutoCommit;
271 local $FS::UID::AutoCommit = 0;
274 my $error = $new->SUPER::replace( $old );
276 $dbh->rollback if $oldAutoCommit;
280 if ( $compat eq '1.3' ) {
282 # maintain part_svc_column records
284 my $svcdb = $new->svcdb;
285 foreach my $field (fields($svcdb),@fields) {
286 next if $field eq 'svcnum';
287 my $prefix = $svcdb.'__';
288 if ( defined( $new->getfield($prefix.$field.'_flag'))
289 or defined($new->getfield($prefix.$field.'_required'))
290 or length($new->getfield($prefix.$field.'_label'))
292 my $part_svc_column = $new->part_svc_column($field);
293 my $previous = qsearchs('part_svc_column', {
294 'svcpart' => $new->svcpart,
295 'columnname' => $field,
298 my $flag = $new->getfield($svcdb.'__'.$field.'_flag');
299 my $label = $new->getfield($svcdb.'__'.$field.'_label');
300 my $required = $new->getfield($svcdb.'__'.$field.'_required') ? 'Y' : '';
302 if ( uc($flag) =~ /^([A-Z])$/ || $label !~ /^\s*$/ ) {
304 if ( uc($flag) =~ /^([A-Z])$/ ) {
305 $part_svc_column->setfield('columnflag', $1);
306 my $parser = FS::part_svc->svc_table_fields($svcdb)->{$field}->{parse}
308 $part_svc_column->setfield('columnvalue',
309 &$parser($new->getfield($svcdb.'__'.$field))
312 $part_svc_column->setfield('columnflag', '');
313 $part_svc_column->setfield('columnvalue', '');
316 $part_svc_column->setfield('columnlabel', $label)
317 if $label !~ /^\s*$/;
319 $part_svc_column->setfield('required', $required);
322 $error = $part_svc_column->replace($previous);
324 $error = $part_svc_column->insert;
327 $error = $previous ? $previous->delete : '';
330 $dbh->rollback if $oldAutoCommit;
336 # maintain export_svc records
338 if ( $exportnums ) { # hash of exportnum => role
340 #false laziness w/ edit/process/agent_type.cgi
341 #and, more importantly, with m2m_Common
342 my @new_export_svc = ();
343 foreach my $part_export ( qsearch('part_export', {}) ) {
344 my $exportnum = $part_export->exportnum;
346 'exportnum' => $exportnum,
347 'svcpart' => $new->svcpart,
349 my $export_svc = qsearchs('export_svc', $hashref);
352 my $old_role = $export_svc->role || 1; # 1 = null in the db
353 if ( ! $exportnums->{$exportnum}
354 or $old_role ne $exportnums->{$exportnum} ) {
356 $error = $export_svc->delete;
358 $dbh->rollback if $oldAutoCommit;
361 undef $export_svc; # on a role change, force it to be reinserted
365 if ( ! $export_svc && $exportnums->{$exportnum} ) {
366 # also applies if it's been undef'd because of role change
367 $hashref->{role} = $exportnums->{$exportnum};
368 push @new_export_svc, new FS::export_svc ( $hashref );
373 my $slice = 100/scalar(@new_export_svc) if @new_export_svc;
375 foreach my $export_svc (@new_export_svc) {
376 $error = $export_svc->insert($job, $slice*$done++, $slice);
378 $dbh->rollback if $oldAutoCommit;
382 $error = $job->update_statustext( int( $slice * $done ) );
384 $dbh->rollback if $oldAutoCommit;
393 $dbh->rollback if $oldAutoCommit;
394 return 'non-1.3-COMPAT interface not yet written';
398 $dbh->commit or die $dbh->errstr if $oldAutoCommit;
405 Checks all fields to make sure this is a valid service definition. If there is
406 an error, returns the error, otherwise returns false. Called by the insert
416 $self->ut_numbern('svcpart')
417 || $self->ut_text('svc')
418 || $self->ut_alpha('svcdb')
419 || $self->ut_flag('disabled')
420 || $self->ut_flag('preserve')
421 || $self->ut_enum('selfservice_access', [ '', 'hidden', 'readonly' ] )
422 || $self->ut_foreign_keyn('classnum', 'part_svc_class', 'classnum' )
423 || $self->ut_flag('restrict_edit_password')
424 || $self->ut_flag('has_router')
426 return $error if $error;
428 my @fields = eval { fields( $self->svcdb ) }; #might die
429 return "Unknown svcdb: ". $self->svcdb. " (Error: $@)"
435 =item part_svc_column COLUMNNAME
437 Returns the part_svc_column object (see L<FS::part_svc_column>) for the given
438 COLUMNNAME, or a new part_svc_column object if none exists.
442 sub part_svc_column {
443 my( $self, $columnname) = @_;
445 qsearchs('part_svc_column', {
446 'svcpart' => $self->svcpart,
447 'columnname' => $columnname,
449 ) or new FS::part_svc_column {
450 'svcpart' => $self->svcpart,
451 'columnname' => $columnname,
455 =item all_part_svc_column
459 sub all_part_svc_column {
461 qsearch('part_svc_column', { 'svcpart' => $self->svcpart } );
464 =item part_export [ EXPORTTYPE ]
466 Returns a list of all exports (see L<FS::part_export>) for this service, or,
467 if an export type is specified, only returns exports of the given type.
474 $search{'exporttype'} = shift if @_;
475 map { $_ } #behavior of sort undefined in scalar context
476 sort { $a->weight <=> $b->weight }
477 map { qsearchs('part_export', { 'exportnum'=>$_->exportnum, %search } ) }
478 qsearch('export_svc', { 'svcpart'=>$self->svcpart } );
481 =item part_export_usage
483 Returns a list of any exports (see L<FS::part_export>) for this service that
484 are capable of reporting usage information.
488 sub part_export_usage {
490 grep $_->can('usage_sessions'), $self->part_export;
493 =item part_export_did
495 Returns a list of any exports (see L<FS::part_export>) for this service that
496 are capable of returing available DID (phone number) information.
500 sub part_export_did {
502 grep $_->can('get_dids'), $self->part_export;
505 =item part_export_dsl_pull
507 Returns a list of any exports (see L<FS::part_export>) for this service that
508 are capable of pulling/pushing DSL orders.
512 sub part_export_dsl_pull {
514 grep $_->can('dsl_pull'), $self->part_export;
517 =item cust_svc [ PKGPART ]
519 Returns a list of associated customer services (FS::cust_svc records).
521 If a PKGPART is specified, returns the customer services which are contained
522 within packages of that type (see L<FS::part_pkg>). If PKGPARTis specified as
523 B<0>, returns unlinked customer services.
530 my $hashref = { 'svcpart' => $self->svcpart };
532 my( $addl_from, $extra_sql ) = ( '', '' );
535 if ( $pkgpart =~ /^(\d+)$/ ) {
536 $addl_from = 'LEFT JOIN cust_pkg USING ( pkgnum )';
537 $extra_sql = "AND pkgpart = $1";
538 } elsif ( $pkgpart eq '0' ) {
539 $hashref->{'pkgnum'} = '';
544 'table' => 'cust_svc',
545 'addl_from' => $addl_from,
546 'hashref' => $hashref,
547 'extra_sql' => $extra_sql,
551 =item num_cust_svc [ PKGPART ]
553 Returns the number of associated customer services (FS::cust_svc records).
555 If a PKGPART is specified, returns the number of customer services which are
556 contained within packages of that type (see L<FS::part_pkg>). If PKGPART
557 is specified as B<0>, returns the number of unlinked customer services.
564 my @param = ( $self->svcpart );
566 my( $join, $and ) = ( '', '' );
570 $join = 'LEFT JOIN cust_pkg USING ( pkgnum )';
571 $and = 'AND pkgpart = ?';
572 push @param, $pkgpart;
573 } elsif ( $pkgpart eq '0' ) {
574 $and = 'AND pkgnum IS NULL';
578 my $sth = dbh->prepare(
579 "SELECT COUNT(*) FROM cust_svc $join WHERE svcpart = ? $and"
580 ) or die dbh->errstr;
581 $sth->execute(@param)
583 $sth->fetchrow_arrayref->[0];
588 Returns a list of associated FS::svc_* records.
594 map { $_->svc_x } $self->cust_svc;
609 return $svc_defs if $svc_defs; #cache
611 my $conf = new FS::Conf;
613 #false laziness w/part_pkg.pm::plan_info
616 foreach my $INC ( @INC ) {
617 warn "globbing $INC/FS/svc_*.pm\n" if $DEBUG;
618 foreach my $file ( glob("$INC/FS/svc_*.pm") ) {
620 warn "attempting to load service table info from $file\n" if $DEBUG;
621 $file =~ /\/(\w+)\.pm$/ or do {
622 warn "unrecognized file in $INC/FS/: $file\n";
627 if ( $mod =~ /^svc_[A-Z]/ or $mod =~ /^(svc_acct_pop|svc_export_machine)$/ ) {
628 warn "skipping FS::$mod" if $DEBUG;
632 eval "use FS::$mod;";
634 die "error using FS::$mod (skipping): $@\n" if $@;
637 unless ( UNIVERSAL::can("FS::$mod", 'table_info') ) {
638 warn "FS::$mod has no table_info method; skipping";
642 my $info = "FS::$mod"->table_info;
643 unless ( keys %$info ) {
644 warn "FS::$mod->table_info doesn't return info, skipping\n";
647 warn "got info from FS::$mod: $info\n" if $DEBUG;
648 if ( exists($info->{'disabled'}) && $info->{'disabled'} ) {
649 warn "skipping disabled service FS::$mod" if $DEBUG;
656 tie my %svc_defs, 'Tie::IxHash',
657 map { $_ => $info{$_}->{'fields'} }
658 sort { $info{$a}->{'display_weight'} <=> $info{$b}->{'display_weight'} }
662 tie my %svc_info, 'Tie::IxHash',
663 map { $_ => $info{$_} }
664 sort { $info{$a}->{'display_weight'} <=> $info{$b}->{'display_weight'} }
668 $svc_info = \%svc_info; #access via svc_table_info
669 $svc_defs = \%svc_defs; #cache
675 Returns a list of all svc_ tables.
681 my $svc_defs = $class->_svc_defs;
682 grep { defined( dbdef->table($_) ) } keys %$svc_defs;
685 =item svc_table_fields TABLE
687 Given a table name, returns a hashref of field names. The field names
688 returned are those with additional (service-definition related) information,
689 not necessarily all database fields of the table. Pseudo-fields may also
690 be returned (i.e. svc_acct.usergroup).
692 Each value of the hashref is another hashref, which can have one or more of
697 =item label - Description of the field
699 =item def_label - Optional description of the field in the context of service definitions
701 =item type - Currently "text", "select", "checkbox", "textarea", "disabled",
702 some components specified by "select-.*.html", and a bunch more...
704 =item disable_default - This field should not allow a default value in service definitions
706 =item disable_fixed - This field should not allow a fixed value in service definitions
708 =item disable_inventory - This field should not allow inventory values in service definitions
710 =item select_list - If type is "text", this can be a listref of possible values.
712 =item select_table - An alternative to select_list, this defines a database table with the possible choices.
714 =item select_key - Used with select_table, this is the field name of keys
716 =item select_label - Used with select_table, this is the field name of labels
718 =item select_allow_empty - Used with select_table, adds an empty option
720 =item required - This field should always have a true value (do not use with type checkbox or disabled)
726 #maybe this should move and be a class method in svc_Common.pm
727 sub svc_table_fields {
728 my($class, $table) = @_;
729 my $svc_defs = $class->_svc_defs;
730 my $def = $svc_defs->{$table};
732 foreach ( grep !ref($def->{$_}), keys %$def ) {
734 #normalize the shortcut in %info hash
735 $def->{$_} = { 'label' => $def->{$_} };
737 $def->{$_}{'type'} ||= 'text';
744 =item svc_table_info TABLE
746 Returns table_info for TABLE from cache, or empty
747 hashref if none is found.
749 Caution: caches table_info for ALL services when run;
750 access a service's table_info directly unless you know
751 you're loading them all.
753 Caution: does not standardize fields into hashrefs;
754 use L</svc_table_fields> to access fields.
761 $class->_svc_defs; #creates cache if needed
762 return $svc_info->{$table} || {};
773 Job-queue processor for web interface adds/edits
777 use Storable qw(thaw);
783 my $param = thaw(decode_base64(shift));
784 warn Dumper($param) if $DEBUG;
786 my $old = qsearchs('part_svc', { 'svcpart' => $param->{'svcpart'} })
787 if $param->{'svcpart'};
789 #unmunge cgp_accessmodes (falze laziness-ish w/edit/process/svc_acct.cgi)
790 $param->{'svc_acct__cgp_accessmodes'} ||=
792 grep { $_ !~ /^(flag|label)$/ }
793 map { /^svc_acct__cgp_accessmodes_([\w\/]+)$/ or die "no way"; $1; }
795 grep /^svc_acct__cgp_accessmodes_([\w\/]+)$/,
800 my $new = new FS::part_svc ( {
803 # } qw(svcpart svc svcdb)
804 } ( fields('part_svc'),
805 map { my $svcdb = $_;
806 my @fields = fields($svcdb);
807 push @fields, 'usergroup' if $svcdb eq 'svc_acct'
808 or $svcdb eq 'svc_broadband'; #kludge
811 my $f = $svcdb.'__'.$_;
812 my $flag = $param->{ $f.'_flag' } || ''; #silence warnings
813 if ( $flag =~ /^[MAH]$/ ) {
814 $param->{ $f } = delete( $param->{ $f.'_classnum' } );
816 if ( ( $flag =~ /^[MAHS]$/ or $_ eq 'usergroup' )
817 and ref($param->{ $f }) ) {
818 $param->{ $f } = join(',', @{ $param->{ $f } });
820 ( $f, $f.'_flag', $f.'_label', $f.'_required' );
824 } FS::part_svc->svc_tables()
829 map { $_->exportnum => ( $param->{'exportnum'.$_->exportnum} || '') }
830 qsearch('part_export', {} );
831 foreach my $exportnum (%exportnums) {
832 my $role = $param->{'exportnum'.$exportnum.'_role'};
833 # role is undef if the export has no role selector
834 if ( $exportnums{$exportnum} && $role ) {
835 $exportnums{$exportnum} = $role;
839 if ( $param->{'svcpart'} ) {
840 $error = $new->replace( $old,
841 '1.3-COMPAT', #totally bunk, as jeff noted
847 $error = $new->insert( [ 'usergroup' ],
851 $param->{'svcpart'} = $new->getfield('svcpart');
854 die "$error\n" if $error;
857 =item process_bulk_cust_svc
859 Job-queue processor for web interface bulk customer service changes
863 use Storable qw(thaw);
866 sub process_bulk_cust_svc {
869 my $param = thaw(decode_base64(shift));
870 warn Dumper($param) if $DEBUG;
872 local($FS::svc_Common::noexport_hack) = 1
873 if $param->{'noexport'};
876 qsearchs('part_svc', { 'svcpart' => $param->{'old_svcpart'} } );
878 die "Must select a new service definition\n" unless $param->{'new_svcpart'};
880 #the rest should be abstracted out to to its own subroutine?
882 local $SIG{HUP} = 'IGNORE';
883 local $SIG{INT} = 'IGNORE';
884 local $SIG{QUIT} = 'IGNORE';
885 local $SIG{TERM} = 'IGNORE';
886 local $SIG{TSTP} = 'IGNORE';
887 local $SIG{PIPE} = 'IGNORE';
889 my $oldAutoCommit = $FS::UID::AutoCommit;
890 local $FS::UID::AutoCommit = 0;
893 local( $FS::cust_svc::ignore_quantity ) = 1;
895 my $total = $old_part_svc->num_cust_svc( $param->{'pkgpart'} );
898 foreach my $old_cust_svc ( $old_part_svc->cust_svc( $param->{'pkgpart'} ) ) {
900 my $new_cust_svc = new FS::cust_svc { $old_cust_svc->hash };
902 $new_cust_svc->svcpart( $param->{'new_svcpart'} );
903 my $error = $new_cust_svc->replace($old_cust_svc);
905 $dbh->rollback if $oldAutoCommit;
906 die "$error\n" if $error;
909 $error = $job->update_statustext( int( 100 * ++$n / $total ) );
911 $dbh->rollback if $oldAutoCommit;
912 die $error if $error;
917 $dbh->commit or die $dbh->errstr if $oldAutoCommit;
923 sub _upgrade_data { #class method
924 my ($class, %opts) = @_;
926 my @part_svc_column = qsearch('part_svc_column', { 'columnname' => 'usergroup' });
927 foreach my $col ( @part_svc_column ) {
928 next if $col->columnvalue =~ /^[\d,]+$/ || !$col->columnvalue;
929 my @groupnames = split(',',$col->columnvalue);
932 foreach my $groupname ( @groupnames ) {
933 my $g = qsearchs('radius_group', { 'groupname' => $groupname } );
935 $g = new FS::radius_group {
936 'groupname' => $groupname,
937 'description' => $groupname,
940 die "Error inserting new radius_group for service definition group \"$groupname\": $error"
943 push @groupnums, $g->groupnum;
945 $col->columnvalue(join(',',@groupnums));
946 $error = $col->replace;
947 die $error if $error;
950 my @badlabels = qsearch({
951 'table' => 'part_svc_column',
953 'extra_sql' => 'WHERE columnlabel IN ('.
954 "'Descriptive label for this particular device.',".
955 "'IP address. Leave blank for automatic assignment.',".
956 "'Maximum upload speed for this service in Kbps. 0 denotes unlimited.',".
957 "'Maximum download speed for this service in Kbps. 0 denotes unlimited.')"
959 foreach my $col ( @badlabels ) {
960 $col->columnlabel('');
961 my $error = $col->replace;
962 die $error if $error;
969 Delete is unimplemented.
971 The list of svc_* tables is no longer hardcoded, but svc_acct_pop is skipped
972 as a special case until it is renamed.
974 all_part_svc_column methods should be documented
978 L<FS::Record>, L<FS::part_svc_column>, L<FS::part_pkg>, L<FS::pkg_svc>,
979 L<FS::cust_svc>, L<FS::svc_acct>, L<FS::svc_forward>, L<FS::svc_domain>,
980 schema.html from the base documentation.