1 package FS::cust_category;
4 use base qw( FS::category_Common );
9 FS::cust_category - Object methods for cust_category records
13 use FS::cust_category;
15 $record = new FS::cust_category \%hash;
16 $record = new FS::cust_category { '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_category object represents a customer category. Every customer
29 class (see L<FS::cust_class>) has, optionally, a customer category.
30 FS::cust_category inherits from FS::Record. The following fields are currently
41 Text name of this package category
49 Disabled flag, empty or 'Y'
59 Creates a new customer category. To add the customer category to the database,
64 sub table { 'cust_category'; }
68 Adds this record to the database. If there is an error, returns the error,
69 otherwise returns false.
73 Delete this record from the database.
75 =item replace OLD_RECORD
77 Replaces the OLD_RECORD with this one in the database. If there is an error,
78 returns the error, otherwise returns false.
82 Checks all fields to make sure this is a valid example. If there is
83 an error, returns the error, otherwise returns false. Called by the insert
92 L<FS::cust_class>, L<FS::Record>