% include( '/elements/header.html', 'Developer Documentation' ) %> <& /elements/menubar.html, 'Freeside Perl Modules' => $fsurl.'docs/library/FS.html', 'Complete Index' => $fsurl.'docs/library/index.html', &>
FS::cust_category - Object methods for cust_category records
use FS::cust_category;
$record = new FS::cust_category \%hash;
$record = new FS::cust_category { 'column' => 'value' };
$error = $record->insert;
$error = $new_record->replace($old_record);
$error = $record->delete;
$error = $record->check;
An FS::cust_category object represents a customer category. Every customer class (see FS::cust_class) has, optionally, a customer category. FS::cust_category inherits from FS::Record. The following fields are currently supported:
primary key
Text name of this package category
Weight
Disabled flag, empty or 'Y'
Creates a new customer category. To add the customer category to the database, see "insert".
Adds this record to the database. If there is an error, returns the error, otherwise returns false.
Delete this record from the database.
Replaces the OLD_RECORD with this one in the database. If there is an error, returns the error, otherwise returns false.
Checks all fields to make sure this is a valid example. If there is an error, returns the error, otherwise returns false. Called by the insert and replace methods.