2 use base qw(FS::Record);
7 use FS::Record qw( qsearch qsearchs fields dbh );
8 use FS::Schema qw( dbdef );
9 use FS::part_svc_column;
13 use FS::part_svc_class;
15 FS::UID->install_callback(sub {
16 # preload the cache and make sure all modules load
17 my $svc_defs = FS::part_svc->_svc_defs;
24 FS::part_svc - Object methods for part_svc objects
30 $record = new FS::part_svc \%hash
31 $record = new FS::part_svc { 'column' => 'value' };
33 $error = $record->insert;
34 $error = $record->insert( [ 'pseudofield' ] );
35 $error = $record->insert( [ 'pseudofield' ], \%exportnums );
37 $error = $new_record->replace($old_record);
38 $error = $new_record->replace($old_record, '1.3-COMPAT', [ 'pseudofield' ] );
39 $error = $new_record->replace($old_record, '1.3-COMPAT', [ 'pseudofield' ], \%exportnums );
41 $error = $record->delete;
43 $error = $record->check;
47 An FS::part_svc represents a service definition. FS::part_svc inherits from
48 FS::Record. The following fields are currently supported:
52 =item svcpart - primary key (assigned automatically for new service definitions)
54 =item svc - text name of this service definition
56 =item svcdb - table used for this service. See L<FS::svc_acct>,
57 L<FS::svc_domain>, and L<FS::svc_forward>, among others.
59 =item classnum - Optional service class (see L<FS::svc_class>)
61 =item disabled - Disabled flag, empty or `Y'
63 =item preserve - Preserve after cancellation, empty or 'Y'
65 =item selfservice_access - Access allowed to the service via self-service:
66 empty for full access, "readonly" for read-only, "hidden" to hide it entirely
68 =item restrict_edit_password - Require the "Provision customer service" access
69 right to change the password field, rather than just "Edit password". Only
70 relevant to svc_acct for now.
72 =item has_router - Allow the service to have an L<FS::router> connected
73 through it. Probably only relevant to svc_broadband, svc_acct, and svc_dsl
84 Creates a new service definition. To add the service definition to the
85 database, see L<"insert">.
89 sub table { 'part_svc'; }
91 =item insert [ EXTRA_FIELDS_ARRAYREF [ , EXPORTNUMS_HASHREF [ , JOB ] ] ]
93 Adds this service definition to the database. If there is an error, returns
94 the error, otherwise returns false.
96 The following pseudo-fields may be defined, and will be maintained in
97 the part_svc_column table appropriately (see L<FS::part_svc_column>).
101 =item I<svcdb>__I<field> - Default or fixed value for I<field> in I<svcdb>.
103 =item I<svcdb>__I<field>_label
105 =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.
107 =item I<svcdb>__I<field>_required - I<field> should always have a true value
111 If you want to add part_svc_column records for fields that do not exist as
112 fields in the I<svcdb> table, make sure to list then in
113 EXTRA_FIELDS_ARRAYREF also.
115 If EXPORTNUMS_HASHREF is specified (keys are exportnums and values are
116 boolean), the appopriate export_svc records will be inserted.
125 @fields = @{shift(@_)} if @_;
126 my $exportnums = shift || {};
130 local $SIG{HUP} = 'IGNORE';
131 local $SIG{INT} = 'IGNORE';
132 local $SIG{QUIT} = 'IGNORE';
133 local $SIG{TERM} = 'IGNORE';
134 local $SIG{TSTP} = 'IGNORE';
135 local $SIG{PIPE} = 'IGNORE';
137 my $oldAutoCommit = $FS::UID::AutoCommit;
138 local $FS::UID::AutoCommit = 0;
141 my $error = $self->SUPER::insert;
143 $dbh->rollback if $oldAutoCommit;
147 # add part_svc_column records
149 my $svcdb = $self->svcdb;
150 foreach my $field (fields($svcdb), @fields) {
151 next if $field eq 'svcnum';
152 my $prefix = $svcdb.'__';
153 if ( defined( $self->getfield($prefix.$field.'_flag'))
154 or defined($self->getfield($prefix.$field.'_required'))
155 or length($self->getfield($prefix.$field.'_label'))
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($prefix.$field.'_flag');
164 my $label = $self->getfield($prefix.$field.'_label');
165 my $required = $self->getfield($prefix.$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($prefix.$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;
199 # add export_svc records
200 my @exportnums = grep $exportnums->{$_}, keys %$exportnums;
201 my $slice = 100/scalar(@exportnums) if @exportnums;
203 foreach my $exportnum ( @exportnums ) {
204 my $export_svc = new FS::export_svc ( {
205 'exportnum' => $exportnum,
206 'svcpart' => $self->svcpart,
207 'role' => $exportnums->{$exportnum},
209 $error = $export_svc->insert($job, $slice*$done++, $slice);
211 $dbh->rollback if $oldAutoCommit;
216 # XXX shouldn't this update fixed values?
218 $dbh->commit or die $dbh->errstr if $oldAutoCommit;
225 Currently unimplemented. Set the "disabled" field instead.
230 return "Can't (yet?) delete service definitions.";
231 # check & make sure the svcpart isn't in cust_svc or pkg_svc (in any packages)?
234 =item replace OLD_RECORD [ '1.3-COMPAT' [ , EXTRA_FIELDS_ARRAYREF [ , EXPORTNUMS_HASHREF [ , JOB ] ] ] ]
236 Replaces OLD_RECORD with this one in the database. If there is an error,
237 returns the error, otherwise returns false.
241 TODOC: EXTRA_FIELDS_ARRAYREF (same as insert method)
248 my ( $new, $old ) = ( shift, shift );
253 if ( @_ && $_[0] eq '1.3-COMPAT' ) {
256 @fields = @{shift(@_)} if @_;
257 $exportnums = @_ ? shift : '';
260 return 'non-1.3-COMPAT interface not yet written';
264 return "Can't change svcdb for an existing service definition!"
265 unless $old->svcdb eq $new->svcdb;
267 local $SIG{HUP} = 'IGNORE';
268 local $SIG{INT} = 'IGNORE';
269 local $SIG{QUIT} = 'IGNORE';
270 local $SIG{TERM} = 'IGNORE';
271 local $SIG{TSTP} = 'IGNORE';
272 local $SIG{PIPE} = 'IGNORE';
274 my $oldAutoCommit = $FS::UID::AutoCommit;
275 local $FS::UID::AutoCommit = 0;
278 my $error = $new->SUPER::replace( $old );
280 $dbh->rollback if $oldAutoCommit;
284 if ( $compat eq '1.3' ) {
286 # maintain part_svc_column records
288 my $svcdb = $new->svcdb;
289 foreach my $field (fields($svcdb),@fields) {
290 next if $field eq 'svcnum';
291 my $prefix = $svcdb.'__';
292 if ( defined( $new->getfield($prefix.$field.'_flag'))
293 or defined($new->getfield($prefix.$field.'_required'))
294 or length($new->getfield($prefix.$field.'_label'))
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;
340 # maintain export_svc records
342 if ( $exportnums ) { # hash of exportnum => role
344 #false laziness w/ edit/process/agent_type.cgi
345 #and, more importantly, with m2m_Common
346 my @new_export_svc = ();
347 foreach my $part_export ( qsearch('part_export', {}) ) {
348 my $exportnum = $part_export->exportnum;
350 'exportnum' => $exportnum,
351 'svcpart' => $new->svcpart,
353 my $export_svc = qsearchs('export_svc', $hashref);
356 my $old_role = $export_svc->role || 1; # 1 = null in the db
357 if ( ! $exportnums->{$exportnum}
358 or $old_role ne $exportnums->{$exportnum} ) {
360 $error = $export_svc->delete;
362 $dbh->rollback if $oldAutoCommit;
365 undef $export_svc; # on a role change, force it to be reinserted
369 if ( ! $export_svc && $exportnums->{$exportnum} ) {
370 # also applies if it's been undef'd because of role change
371 $hashref->{role} = $exportnums->{$exportnum};
372 push @new_export_svc, new FS::export_svc ( $hashref );
377 my $slice = 100/scalar(@new_export_svc) if @new_export_svc;
379 foreach my $export_svc (@new_export_svc) {
380 $error = $export_svc->insert($job, $slice*$done++, $slice);
382 $dbh->rollback if $oldAutoCommit;
386 $error = $job->update_statustext( int( $slice * $done ) );
388 $dbh->rollback if $oldAutoCommit;
397 $dbh->rollback if $oldAutoCommit;
398 return 'non-1.3-COMPAT interface not yet written';
402 $dbh->commit or die $dbh->errstr if $oldAutoCommit;
409 Checks all fields to make sure this is a valid service definition. If there is
410 an error, returns the error, otherwise returns false. Called by the insert
420 $self->ut_numbern('svcpart')
421 || $self->ut_text('svc')
422 || $self->ut_alpha('svcdb')
423 || $self->ut_flag('disabled')
424 || $self->ut_flag('preserve')
425 || $self->ut_enum('selfservice_access', [ '', 'hidden', 'readonly' ] )
426 || $self->ut_foreign_keyn('classnum', 'part_svc_class', 'classnum' )
427 || $self->ut_flag('restrict_edit_password')
428 || $self->ut_flag('has_router')
430 return $error if $error;
432 my @fields = eval { fields( $self->svcdb ) }; #might die
433 return "Unknown svcdb: ". $self->svcdb. " (Error: $@)"
439 =item part_svc_column COLUMNNAME
441 Returns the part_svc_column object (see L<FS::part_svc_column>) for the given
442 COLUMNNAME, or a new part_svc_column object if none exists.
446 sub part_svc_column {
447 my( $self, $columnname) = @_;
449 qsearchs('part_svc_column', {
450 'svcpart' => $self->svcpart,
451 'columnname' => $columnname,
453 ) or new FS::part_svc_column {
454 'svcpart' => $self->svcpart,
455 'columnname' => $columnname,
459 =item all_part_svc_column
463 sub all_part_svc_column {
465 qsearch('part_svc_column', { 'svcpart' => $self->svcpart } );
468 =item part_export [ EXPORTTYPE ]
470 Returns a list of all exports (see L<FS::part_export>) for this service, or,
471 if an export type is specified, only returns exports of the given type.
478 $search{'exporttype'} = shift if @_;
479 map { $_ } #behavior of sort undefined in scalar context
480 sort { $a->weight <=> $b->weight }
481 map { qsearchs('part_export', { 'exportnum'=>$_->exportnum, %search } ) }
482 qsearch('export_svc', { 'svcpart'=>$self->svcpart } );
485 =item part_export_usage
487 Returns a list of any exports (see L<FS::part_export>) for this service that
488 are capable of reporting usage information.
492 sub part_export_usage {
494 grep $_->can('usage_sessions'), $self->part_export;
497 =item part_export_did
499 Returns a list of any exports (see L<FS::part_export>) for this service that
500 are capable of returing available DID (phone number) information.
504 sub part_export_did {
506 grep $_->can_get_dids, $self->part_export;
509 =item part_export_dsl_pull
511 Returns a list of any exports (see L<FS::part_export>) for this service that
512 are capable of pulling/pushing DSL orders.
516 sub part_export_dsl_pull {
518 grep $_->can('dsl_pull'), $self->part_export;
521 =item cust_svc [ PKGPART ]
523 Returns a list of associated customer services (FS::cust_svc records).
525 If a PKGPART is specified, returns the customer services which are contained
526 within packages of that type (see L<FS::part_pkg>). If PKGPARTis specified as
527 B<0>, returns unlinked customer services.
534 my $hashref = { 'svcpart' => $self->svcpart };
536 my( $addl_from, $extra_sql ) = ( '', '' );
539 if ( $pkgpart =~ /^(\d+)$/ ) {
540 $addl_from = 'LEFT JOIN cust_pkg USING ( pkgnum )';
541 $extra_sql = "AND pkgpart = $1";
542 } elsif ( $pkgpart eq '0' ) {
543 $hashref->{'pkgnum'} = '';
548 'table' => 'cust_svc',
549 'addl_from' => $addl_from,
550 'hashref' => $hashref,
551 'extra_sql' => $extra_sql,
555 =item num_cust_svc [ PKGPART ]
557 Returns the number of associated customer services (FS::cust_svc records).
559 If a PKGPART is specified, returns the number of customer services which are
560 contained within packages of that type (see L<FS::part_pkg>). If PKGPART
561 is specified as B<0>, returns the number of unlinked customer services.
568 my @param = ( $self->svcpart );
570 my( $join, $and ) = ( '', '' );
574 $join = 'LEFT JOIN cust_pkg USING ( pkgnum )';
575 $and = 'AND pkgpart = ?';
576 push @param, $pkgpart;
577 } elsif ( $pkgpart eq '0' ) {
578 $and = 'AND pkgnum IS NULL';
582 my $sth = dbh->prepare(
583 "SELECT COUNT(*) FROM cust_svc $join WHERE svcpart = ? $and"
584 ) or die dbh->errstr;
585 $sth->execute(@param)
587 $sth->fetchrow_arrayref->[0];
592 Returns a list of associated FS::svc_* records.
598 map { $_->svc_x } $self->cust_svc;
613 return $svc_defs if $svc_defs; #cache
615 my $conf = new FS::Conf;
617 #false laziness w/part_pkg.pm::plan_info
620 foreach my $INC ( @INC ) {
621 warn "globbing $INC/FS/svc_*.pm\n" if $DEBUG;
622 foreach my $file ( glob("$INC/FS/svc_*.pm") ) {
624 warn "attempting to load service table info from $file\n" if $DEBUG;
625 $file =~ /\/(\w+)\.pm$/ or do {
626 warn "unrecognized file in $INC/FS/: $file\n";
631 if ( $mod =~ /^svc_[A-Z]/ or $mod =~ /^(svc_acct_pop|svc_export_machine)$/ ) {
632 warn "skipping FS::$mod" if $DEBUG;
636 eval "use FS::$mod;";
638 die "error using FS::$mod (skipping): $@\n" if $@;
641 unless ( UNIVERSAL::can("FS::$mod", 'table_info') ) {
642 warn "FS::$mod has no table_info method; skipping";
646 my $info = "FS::$mod"->table_info;
647 unless ( keys %$info ) {
648 warn "FS::$mod->table_info doesn't return info, skipping\n";
651 warn "got info from FS::$mod: $info\n" if $DEBUG;
652 if ( exists($info->{'disabled'}) && $info->{'disabled'} ) {
653 warn "skipping disabled service FS::$mod" if $DEBUG;
658 # all svc_* modules are required to have h_svc_* modules for invoice
659 # display. check for them as early as possible.
660 eval "use FS::h_$mod;";
662 die "couldn't load history record module h_$mod: $@\n";
668 tie my %svc_defs, 'Tie::IxHash',
669 map { $_ => $info{$_}->{'fields'} }
670 sort { $info{$a}->{'display_weight'} <=> $info{$b}->{'display_weight'} }
674 tie my %svc_info, 'Tie::IxHash',
675 map { $_ => $info{$_} }
676 sort { $info{$a}->{'display_weight'} <=> $info{$b}->{'display_weight'} }
680 $svc_info = \%svc_info; #access via svc_table_info
681 $svc_defs = \%svc_defs; #cache
687 Returns a list of all svc_ tables.
693 my $svc_defs = $class->_svc_defs;
694 grep { defined( dbdef->table($_) ) } keys %$svc_defs;
697 =item svc_table_fields TABLE
699 Given a table name, returns a hashref of field names. The field names
700 returned are those with additional (service-definition related) information,
701 not necessarily all database fields of the table. Pseudo-fields may also
702 be returned (i.e. svc_acct.usergroup).
704 Each value of the hashref is another hashref, which can have one or more of
709 =item label - Description of the field
711 =item def_label - Optional description of the field in the context of service definitions
713 =item type - Currently "text", "select", "checkbox", "textarea", "disabled",
714 some components specified by "select-.*.html", and a bunch more...
716 =item disable_default - This field should not allow a default value in service definitions
718 =item disable_fixed - This field should not allow a fixed value in service definitions
720 =item disable_inventory - This field should not allow inventory values in service definitions
722 =item select_list - If type is "text", this can be a listref of possible values.
724 =item select_table - An alternative to select_list, this defines a database table with the possible choices.
726 =item select_key - Used with select_table, this is the field name of keys
728 =item select_label - Used with select_table, this is the field name of labels
730 =item select_allow_empty - Used with select_table, adds an empty option
732 =item required - This field should always have a true value (do not use with type checkbox or disabled)
738 #maybe this should move and be a class method in svc_Common.pm
739 sub svc_table_fields {
740 my($class, $table) = @_;
741 my $svc_defs = $class->_svc_defs;
742 my $def = $svc_defs->{$table};
744 foreach ( grep !ref($def->{$_}), keys %$def ) {
746 #normalize the shortcut in %info hash
747 $def->{$_} = { 'label' => $def->{$_} };
749 $def->{$_}{'type'} ||= 'text';
756 =item svc_table_info TABLE
758 Returns table_info for TABLE from cache, or empty
759 hashref if none is found.
761 Caution: caches table_info for ALL services when run;
762 access a service's table_info directly unless you know
763 you're loading them all.
765 Caution: does not standardize fields into hashrefs;
766 use L</svc_table_fields> to access fields.
773 $class->_svc_defs; #creates cache if needed
774 return $svc_info->{$table} || {};
785 Job-queue processor for web interface adds/edits
793 warn Dumper($param) if $DEBUG;
795 my $old = qsearchs('part_svc', { 'svcpart' => $param->{'svcpart'} })
796 if $param->{'svcpart'};
798 #unmunge cgp_accessmodes (falze laziness-ish w/edit/process/svc_acct.cgi)
799 $param->{'svc_acct__cgp_accessmodes'} ||=
801 grep { $_ !~ /^(flag|label)$/ }
802 map { /^svc_acct__cgp_accessmodes_([\w\/]+)$/ or die "no way"; $1; }
804 grep /^svc_acct__cgp_accessmodes_([\w\/]+)$/,
809 my $new = new FS::part_svc ( {
812 # } qw(svcpart svc svcdb)
813 } ( fields('part_svc'),
814 map { my $svcdb = $_;
815 my @fields = fields($svcdb);
816 push @fields, 'usergroup' if $svcdb eq 'svc_acct'
817 or $svcdb eq 'svc_broadband'; #kludge
820 my $f = $svcdb.'__'.$_;
821 my $flag = $param->{ $f.'_flag' } || ''; #silence warnings
822 if ( $flag =~ /^[MAH]$/ ) {
823 $param->{ $f } = delete( $param->{ $f.'_classnum' } );
825 if ( ( $flag =~ /^[MAHS]$/ or $_ eq 'usergroup' )
826 and ref($param->{ $f }) ) {
827 $param->{ $f } = join(',', @{ $param->{ $f } });
829 ( $f, $f.'_flag', $f.'_label', $f.'_required' );
833 } FS::part_svc->svc_tables()
838 map { $_->exportnum => ( $param->{'exportnum'.$_->exportnum} || '') }
839 qsearch('part_export', {} );
840 foreach my $exportnum (%exportnums) {
841 my $role = $param->{'exportnum'.$exportnum.'_role'};
842 # role is undef if the export has no role selector
843 if ( $exportnums{$exportnum} && $role ) {
844 $exportnums{$exportnum} = $role;
848 if ( $param->{'svcpart'} ) {
849 $error = $new->replace( $old,
850 '1.3-COMPAT', #totally bunk, as jeff noted
856 $error = $new->insert( [ 'usergroup' ],
860 $param->{'svcpart'} = $new->getfield('svcpart');
863 die "$error\n" if $error;
866 =item process_bulk_cust_svc
868 Job-queue processor for web interface bulk customer service changes
873 sub process_bulk_cust_svc {
876 warn Dumper($param) if $DEBUG;
878 local($FS::svc_Common::noexport_hack) = 1
879 if $param->{'noexport'};
882 qsearchs('part_svc', { 'svcpart' => $param->{'old_svcpart'} } );
884 die "Must select a new service definition\n" unless $param->{'new_svcpart'};
886 #the rest should be abstracted out to to its own subroutine?
888 local $SIG{HUP} = 'IGNORE';
889 local $SIG{INT} = 'IGNORE';
890 local $SIG{QUIT} = 'IGNORE';
891 local $SIG{TERM} = 'IGNORE';
892 local $SIG{TSTP} = 'IGNORE';
893 local $SIG{PIPE} = 'IGNORE';
895 my $oldAutoCommit = $FS::UID::AutoCommit;
896 local $FS::UID::AutoCommit = 0;
899 local( $FS::cust_svc::ignore_quantity ) = 1;
901 my $total = $old_part_svc->num_cust_svc( $param->{'pkgpart'} );
904 foreach my $old_cust_svc ( $old_part_svc->cust_svc( $param->{'pkgpart'} ) ) {
906 my $new_cust_svc = new FS::cust_svc { $old_cust_svc->hash };
908 $new_cust_svc->svcpart( $param->{'new_svcpart'} );
909 my $error = $new_cust_svc->replace($old_cust_svc);
911 $dbh->rollback if $oldAutoCommit;
912 die "$error\n" if $error;
915 $error = $job->update_statustext( int( 100 * ++$n / $total ) );
917 $dbh->rollback if $oldAutoCommit;
918 die $error if $error;
923 $dbh->commit or die $dbh->errstr if $oldAutoCommit;
929 sub _upgrade_data { #class method
930 my ($class, %opts) = @_;
932 my @part_svc_column = qsearch('part_svc_column', { 'columnname' => 'usergroup' });
933 foreach my $col ( @part_svc_column ) {
934 next if $col->columnvalue =~ /^[\d,]+$/ || !$col->columnvalue;
935 my @groupnames = split(',',$col->columnvalue);
938 foreach my $groupname ( @groupnames ) {
939 my $g = qsearchs('radius_group', { 'groupname' => $groupname } );
941 $g = new FS::radius_group {
942 'groupname' => $groupname,
943 'description' => $groupname,
946 die "Error inserting new radius_group for service definition group \"$groupname\": $error"
949 push @groupnums, $g->groupnum;
951 $col->columnvalue(join(',',@groupnums));
952 $error = $col->replace;
953 die $error if $error;
956 my @badlabels = qsearch({
957 'table' => 'part_svc_column',
959 'extra_sql' => 'WHERE columnlabel IN ('.
960 "'Descriptive label for this particular device.',".
961 "'IP address. Leave blank for automatic assignment.',".
962 "'Maximum upload speed for this service in Kbps. 0 denotes unlimited.',".
963 "'Maximum download speed for this service in Kbps. 0 denotes unlimited.')"
965 foreach my $col ( @badlabels ) {
966 $col->columnlabel('');
967 my $error = $col->replace;
968 die $error if $error;
975 Delete is unimplemented.
977 The list of svc_* tables is no longer hardcoded, but svc_acct_pop is skipped
978 as a special case until it is renamed.
980 all_part_svc_column methods should be documented
984 L<FS::Record>, L<FS::part_svc_column>, L<FS::part_pkg>, L<FS::pkg_svc>,
985 L<FS::cust_svc>, L<FS::svc_acct>, L<FS::svc_forward>, L<FS::svc_domain>,
986 schema.html from the base documentation.