1 package FS::cust_note_class;
2 use base qw( FS::class_Common );
8 FS::cust_note_class - Object methods for cust_note_class records
12 use FS::cust_note_class;
14 $record = new FS::cust_note_class \%hash;
15 $record = new FS::cust_note_class { 'column' => 'value' };
17 $error = $record->insert;
19 $error = $new_record->replace($old_record);
21 $error = $record->delete;
23 $error = $record->check;
27 An FS::cust_note_class object represents a customer note class. Every customer
28 note (see L<FS::cust_main_note) has, optionally, a note class. This class
29 inherits from FS::class_Common. The following fields are currently supported:
54 Creates a new customer note class. To add the note class to the database,
57 Note that this stores the hash reference, not a distinct copy of the hash it
58 points to. You can ask the object for a copy with the I<hash> method.
62 sub table { 'cust_note_class'; }
63 sub _target_table { 'cust_main_note'; }
67 Adds this record to the database. If there is an error, returns the error,
68 otherwise returns false.
74 Delete this record from the database.
78 =item replace OLD_RECORD
80 Replaces the OLD_RECORD with this one in the database. If there is an error,
81 returns the error, otherwise returns false.
87 Checks all fields to make sure this is a valid note class. If there is
88 an error, returns the error, otherwise returns false. Called by the insert
99 L<FS::cust_main_note>, L<FS::Record>, schema.html from the base documentation.