2 FS::cust_bill_pkg - Object methods for cust_bill_pkg records
7 $record = create FS::cust_bill_pkg \%hash;
8 $record = create FS::cust_bill_pkg { 'column' => 'value' };
10 $error = $record->insert;
12 $error = $new_record->replace($old_record);
14 $error = $record->delete;
16 $error = $record->check;
19 An FS::cust_bill_pkg object represents an invoice line item.
20 FS::cust_bill_pkg inherits from FS::Record. The following fields
21 are currently supported:
23 invnum - invoice (see the FS::cust_bill manpage)
24 pkgnum - package (see the FS::cust_pkg manpage)
27 sdate - starting date of recurring fee
28 edate - ending date of recurring fee
29 sdate and edate are specified as UNIX timestamps; see the
30 section on "time" in the perlfunc manpage. Also see the
31 Time::Local manpage and the Date::Parse manpage for conversion
36 Creates a new line item. To add the line item to the
37 database, see the section on "insert". Line items are
38 normally created by calling the bill method of a customer
39 object (see the FS::cust_main manpage).
42 Adds this line item to the database. If there is an error,
43 returns the error, otherwise returns false.
46 Currently unimplemented. I don't remove line items because
47 there would then be no record the items ever existed (which
51 Currently unimplemented. This would be even more of an
52 accounting nightmare than deleteing the items. Just don't do
56 Checks all fields to make sure this is a valid line item. If
57 there is an error, returns the error, otherwise returns
58 false. Called by the insert method.
61 It doesn't properly override FS::Record yet.
64 the FS::Record manpage, the FS::cust_bill manpage, the
65 FS::cust_pkg manpage, the FS::cust_main manpage, schema.html
66 from the base documentation.
69 ivan@sisd.com 98-mar-13
71 pod ivan@sisd.com 98-sep-21