2 use base qw( FS::device_Common FS::svc_Common );
5 use base qw( FS::Record );
6 use FS::Record; # qw( qsearch qsearchs );
10 FS::svc_cable - Object methods for svc_cable records
16 $record = new FS::svc_cable \%hash;
17 $record = new FS::svc_cable { 'column' => 'value' };
19 $error = $record->insert;
21 $error = $new_record->replace($old_record);
23 $error = $record->delete;
25 $error = $record->check;
29 An FS::svc_cable object represents a cable subscriber. FS::svc_cable inherits
30 from FS::Record. The following fields are currently supported:
46 Creates a new record. To add the record to the database, see L<"insert">.
48 Note that this stores the hash reference, not a distinct copy of the hash it
49 points to. You can ask the object for a copy with the I<hash> method.
53 sub table { 'svc_cable'; }
57 'name' => 'Cable Subscriber',
58 #'name_plural' => '', #optional,
59 #'longname_plural' => '', #optional
60 'sorts' => [ 'svcnum', ], #, 'serviceid' ], # optional sort field (or arrayref of sort fields, main first)
61 'display_weight' => 54,
62 'cancel_weight' => 70, #? no deps, so
64 'svcnum' => 'Service',
65 'identifier' => 'Identifier',
72 Adds this record to the database. If there is an error, returns the error,
73 otherwise returns false.
77 Delete this record from the database.
79 =item replace OLD_RECORD
81 Replaces the OLD_RECORD with this one in the database. If there is an error,
82 returns the error, otherwise returns false.
86 Checks all fields to make sure this is a valid record. If there is
87 an error, returns the error, otherwise returns false. Called by the insert
96 $self->ut_numbern('svcnum')
98 return $error if $error;
109 L<FS::Record>, schema.html from the base documentation.