% 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_refund - Object methods for cust_bill_pay records
use FS::cust_credit_refund;
$record = new FS::cust_credit_refund \%hash;
$record = new FS::cust_credit_refund { 'column' => 'value' };
$error = $record->insert;
$error = $new_record->replace($old_record);
$error = $record->delete;
$error = $record->check;
An FS::cust_credit_refund represents the application of a refund to a specific credit. FS::cust_credit_refund inherits from FS::Record. The following fields are currently supported:
Creates a new record. To add the record to the database, see "insert".
Adds this record to the database. If there is an error, returns the error, otherwise returns false.
Remove this cust_credit_refund from the database. If there is an error, returns the error, otherwise returns false.
Currently unimplemented (accounting reasons).
Checks all fields to make sure this is a valid refund application. If there is an error, returns the error, otherwise returns false. Called by the insert method.
Returns the refund (see FS::cust_refund)
Returns the credit (see FS::cust_credit)
Delete and replace methods.
the checks for over-applied refunds could be better done like the ones in cust_bill_credit
FS::cust_credit, FS::cust_refund, FS::Record, schema.html from the base documentation.