2 FS::part_pkg - Object methods for part_pkg objects
7 $record = create FS::part_pkg \%hash
8 $record = create FS::part_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::part_pkg represents a billing item definition.
20 FS::part_pkg inherits from FS::Record. The following fields are
23 pkgpart - primary key (assigned automatically for new billing item definitions)
24 pkg - Text name of this billing item definition (customer-viewable)
25 comment - Text name of this billing item definition (non-customer-viewable)
27 freq - Frequency of recurring fee
29 setup and recur are evaluated as Safe perl expressions. You can
30 use numbers just as you would normally. More advanced semantics
35 Creates a new billing item definition. To add the billing
36 item definition to the database, see the section on
40 Adds this billing item definition to the database. If there
41 is an error, returns the error, otherwise returns false.
44 Currently unimplemented.
47 Replaces OLD_RECORD with this one in the database. If there
48 is an error, returns the error, otherwise returns false.
51 Checks all fields to make sure this is a valid billing item
52 definition. If there is an error, returns the error,
53 otherwise returns false. Called by the insert and replace
57 It doesn't properly override FS::Record yet.
59 The delete method is unimplemented.
61 setup and recur semantics are not yet defined (and are
62 implemented in FS::cust_bill. hmm.).
65 the FS::Record manpage, the FS::cust_pkg manpage, the
66 FS::type_pkgs manpage, the FS::pkg_svc manpage, the Safe
67 manpage. schema.html from the base documentation.
70 ivan@sisd.com 97-dec-5
72 pod ivan@sisd.com 98-sep-21