% 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_void - Object methods for cust_credit_void objects
use FS::cust_credit_void;
$record = new FS::cust_credit_void \%hash;
$record = new FS::cust_credit_void { 'column' => 'value' };
$error = $record->insert;
$error = $new_record->replace($old_record);
$error = $record->delete;
$error = $record->check;
An FS::cust_credit_void object represents a voided credit. All fields in FS::cust_credit are present, as well as:
Creates a new voided credit record.
Adds this voided credit to the database.
Checks all fields to make sure this is a valid voided credit. If there is an error, returns the error, otherwise returns false. Called by the insert method.
"Un-void"s this credit: Deletes the voided credit from the database and adds back (but does not re-apply) a normal credit.
Returns the parent customer object (see FS::cust_main).
Returns the voiding employee object (see FS::access_user).
Returns the voiding employee name.
Returns the text of the associated void credit reason (see FS::reason) for this voided credit.
The reason for the original credit remains accessible through the reason method.
Doesn't yet support unvoid.
FS::cust_credit, FS::Record, schema.html from the base documentation.