FS::cust_bill_pkg - Object methods for cust_bill_pkg records
use FS::cust_bill_pkg;
$record = new FS::cust_bill_pkg \%hash; $record = new FS::cust_bill_pkg { 'column' => 'value' };
$error = $record->insert;
$error = $new_record->replace($old_record);
$error = $record->delete;
$error = $record->check;
An FS::cust_bill_pkg object represents an invoice line item. FS::cust_bill_pkg inherits from FS::Record. The following fields are currently supported:
sdate and edate are specified as UNIX timestamps; see perlfunc. Also see Time::Local and Date::Parse for conversion functions.
Creates a new line item. To add the line item to the database, see insert. Line items are normally created by calling the bill method of a customer object (see FS::cust_main).
Adds this line item to the database. If there is an error, returns the error, otherwise returns false.
Currently unimplemented. I don't remove line items because there would then be no record the items ever existed (which is bad, no?)
Currently unimplemented. This would be even more of an accounting nightmare than deleteing the items. Just don't do it.
Checks all fields to make sure this is a valid line item. If there is an error, returns the error, otherwise returns false. Called by the insert method.
$Id: cust_bill_pkg.html,v 1.2 2000-03-03 18:22:42 ivan Exp $
FS::Record, FS::cust_bill, FS::cust_pkg, FS::cust_main, schema.html from the base documentation.