% 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::legacy_cust_bill - Object methods for legacy_cust_bill records
use FS::legacy_cust_bill;
$record = new FS::legacy_cust_bill \%hash;
$record = new FS::legacy_cust_bill { 'column' => 'value' };
$error = $record->insert;
$error = $new_record->replace($old_record);
$error = $record->delete;
$error = $record->check;
An FS::legacy_cust_bill object represents an invoice from a previous billing system, about which full details are not availble. Instead, the rendered content is stored in HTML or PDF format. FS::legacy_cust_bill invoices are stored for informational and display purposes only; they have no effect upon customer balances.
FS::legacy_cust_bill inherits from FS::Record. The following fields are currently supported:
primary key
Invoice number or identifier from previous system
Customer (see FS::cust_main)
Date, as a UNIX timestamp
Amount charged
PDF content
HTML content
Creates a new legacy invoice. To add the example 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 legacy invoice. If there is an error, returns the error, otherwise returns false. Called by the insert and replace methods.
Returns the customer (see FS::cust_main) for this invoice.
FS::Record, schema.html from the base documentation.