5 use FS::Record qw( qsearchs );
8 @ISA = qw( FS::Record );
12 FS::ac_type - Object methods for ac_type records
18 $record = new FS::ac_type \%hash;
19 $record = new FS::ac_type { 'column' => 'value' };
21 $error = $record->insert;
23 $error = $new_record->replace($old_record);
25 $error = $record->delete;
27 $error = $record->check;
31 L<FS::ac_type> refers to a type of access concentrator. L<FS::svc_broadband>
32 records refer to a specific L<FS::ac_type> limiting the choice of access
33 concentrator to one of the chosen type. This should be set as a fixed
34 default in part_svc to prevent provisioning the wrong type of service for
35 a given package or service type. Supported fields as follows:
39 =item actypenum - Primary key. see L<FS::ac>
41 =item actypename - Text identifier for access concentrator type.
51 Create a new record. To add the record to the database, see L<"insert">.
55 sub table { 'ac_type'; }
59 Adds this record to the database. If there is an error, returns the error,
60 otherwise returns false.
64 Deletes this record from the database. If there is an error, returns the
65 error, otherwise returns false.
67 =item replace OLD_RECORD
69 Replaces OLD_RECORD with this one in the database. If there is an error,
70 returns the error, otherwise returns false.
74 Checks all fields to make sure this is a valid record. If there is an error,
75 returns the error, otherwise returns false. Called by the insert and replace
90 Returns a list of all L<FS::ac> records of this type.
97 return qsearch('ac', { actypenum => $self->actypenum });
102 Returns a list of all L<FS::part_ac_field> records of this type.
109 return qsearch('part_ac_field', { actypenum => $self->actypenum });
122 L<FS::svc_broadband>, L<FS::ac>, L<FS::ac_block>, L<FS::ac_field>, schema.html
123 from the base documentation.