FS::cust_bill - Object methods for cust_bill records
use FS::cust_bill;
$record = new FS::cust_bill \%hash; $record = new FS::cust_bill { 'column' => 'value' };
$error = $record->insert;
$error = $new_record->replace($old_record);
$error = $record->delete;
$error = $record->check;
( $total_previous_balance, @previous_cust_bill ) = $record->previous;
@cust_bill_pkg_objects = $cust_bill->cust_bill_pkg;
( $total_previous_credits, @previous_cust_credit ) = $record->cust_credit;
@cust_pay_objects = $cust_bill->cust_pay;
$tax_amount = $record->tax;
@lines = $cust_bill->print_text; @lines = $cust_bill->print_text $time;
An FS::cust_bill object represents an invoice; a declaration that a customer owes you money. The specific charges are itemized as cust_bill_pkg records (see the FS::cust_bill_pkg manpage). FS::cust_bill inherits from FS::Record. The following fields are currently supported:
Only printed may be changed. printed is normally updated by calling the collect method of a customer object (see the FS::cust_main manpage).
#Returns a list consisting of the total previous credited (see #L<FS::cust_credit>) and unapplied for this customer, followed by the previous #outstanding credits (FS::cust_credit objects).
#Returns all payments (see the FS::cust_pay manpage) for this invoice.
TIME an optional value used to control the printing of overdue messages. The default is now. It isn't the date of the invoice; that's the `_date' field. It is specified as a UNIX timestamp; see perlfunc/``time''. Also see the Time::Local manpage and the Date::Parse manpage for conversion functions.
$Id: cust_bill.html,v 1.3 2002-01-29 17:42:46 ivan Exp $
The delete method.
print_text formatting (and some logic :/) is in source, but needs to be slurped in from a file. Also number of lines ($=).
missing print_ps for a nice postscript copy (maybe HylaFAX-cover-page-style or something similar so the look can be completely customized?)
the FS::Record manpage, the FS::cust_main manpage, the FS::cust_bill_pay manpage, FS:;cust_pay, the FS::cust_bill_pkg manpage, the FS::cust_bill_credit manpage, schema.html from the base documentation.