% 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_event - Object methods for cust_event records
use FS::cust_event;
$record = new FS::cust_event \%hash;
$record = new FS::cust_event { 'column' => 'value' };
$error = $record->insert;
$error = $new_record->replace($old_record);
$error = $record->delete;
$error = $record->check;
An FS::cust_event object represents an completed event. FS::cust_event inherits from FS::Record. The following fields are currently supported:
Creates a new completed invoice event. To add the compelted invoice event to the database, see "insert".
Note that this stores the hash reference, not a distinct copy of the hash it points to. You can ask the object for a copy with the hash method.
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 completed invoice event. If there is an error, returns the error, otherwise returns false. Called by the insert and replace methods.
Returns the event definition (see FS::part_event) for this completed event.
Returns the customer, package, invoice or batched payment (see FS::cust_main, FS::cust_pkg, FS::cust_bill or FS::cust_pay_batch) for this completed invoice event.
Tests conditions for this event, returns true if all conditions are satisfied, false otherwise.
Runs the event action.
Changes the status of this event from done to failed, allowing it to be retried.
Class method which returns an SQL WHERE fragment to search for parameters specified in HASHREF. Valid parameters are
FS::part_event, FS::cust_bill, FS::Record, schema.html from the base documentation.
Hey! The above document had some coding errors, which are explained below:
Expected text after =item, not a bullet