% 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_credit_bill - Object methods for cust_credit_bill records
use FS::cust_credit_bill;
$record = new FS::cust_credit_bill \%hash;
$record = new FS::cust_credit_bill { 'column' => 'value' };
$error = $record->insert;
$error = $new_record->replace($old_record);
$error = $record->delete;
$error = $record->check;
An FS::cust_credit_bill object represents application of a credit (see FS::cust_credit) to an invoice (see FS::cust_bill). FS::cust_credit_bill inherits from FS::cust_bill_ApplicationCommon and FS::Record. The following fields are currently supported:
Creates a new cust_credit_bill. To add the cust_credit_bill to the database, see "insert".
Adds this cust_credit_bill to the database ("Posts" all or part of a credit). If there is an error, returns the error, otherwise returns false.
Currently unimplemented.
Application of credits may not be modified.
Checks all fields to make sure this is a valid credit application. If there is an error, returns the error, otherwise returns false. Called by the insert and replace methods.
Returns the credit (see FS::cust_credit)
The delete method.
This probably should have been called cust_bill_credit.
FS::Record, FS::cust_bill, FS::cust_credit, schema.html from the base documentation.