1 package FS::cust_note_class;
4 use base qw( FS::class_Common );
5 use FS::cust_main_note;
9 FS::cust_note_class - Object methods for cust_note_class records
13 use FS::cust_note_class;
15 $record = new FS::cust_note_class \%hash;
16 $record = new FS::cust_note_class { 'column' => 'value' };
18 $error = $record->insert;
20 $error = $new_record->replace($old_record);
22 $error = $record->delete;
24 $error = $record->check;
28 An FS::cust_note_class object represents a customer note class. Every customer
29 note (see L<FS::cust_main_note) has, optionally, a note class. This class
30 inherits from FS::class_Common. The following fields are currently supported:
55 Creates a new customer note class. To add the note class to the database,
58 Note that this stores the hash reference, not a distinct copy of the hash it
59 points to. You can ask the object for a copy with the I<hash> method.
63 sub table { 'cust_note_class'; }
64 sub _target_table { 'cust_main_note'; }
68 Adds this record to the database. If there is an error, returns the error,
69 otherwise returns false.
75 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.
88 Checks all fields to make sure this is a valid note class. If there is
89 an error, returns the error, otherwise returns false. Called by the insert
100 L<FS::cust_main_note>, L<FS::Record>, schema.html from the base documentation.