Freeside:3:Documentation:Developer/FS/part fee usage

From Freeside
Jump to: navigation, search

NAME

FS::part_fee_usage - Object methods for part_fee_usage records

SYNOPSIS

 use FS::part_fee_usage;

 $record = new FS::part_fee_usage \%hash;
 $record = new FS::part_fee_usage { 'column' => 'value' };

 $error = $record->insert;

 $error = $new_record->replace($old_record);

 $error = $record->delete;

 $error = $record->check;

DESCRIPTION

An FS::part_fee_usage object is the part of a processing fee definition (FS::part_fee) that applies to a specific telephone usage class (FS::usage_class). FS::part_fee_usage inherits from FS::Record. The following fields are currently supported:

feepartusagenum - primary key; feepart - foreign key to FS::part_pkg; classnum - foreign key to FS::usage_class; amount - fixed amount to charge per usage record; percent - percentage of rated price to charge per usage record

METHODS

explanation
Returns a string describing how this fee is calculated.

SEE ALSO

FS::Record, schema.html from the base documentation.