2 FS::pkg_svc - Object methods for pkg_svc records
7 $record = create FS::pkg_svc \%hash;
8 $record = create FS::pkg_svc { 'column' => 'value' };
10 $error = $record->insert;
12 $error = $new_record->replace($old_record);
14 $error = $record->delete;
16 $error = $record->check;
19 An FS::pkg_svc record links a billing item definition (see the
20 FS::part_pkg manpage) to a service definition (see the
21 FS::part_svc manpage). FS::pkg_svc inherits from FS::Record. The
22 following fields are currently supported:
24 pkgpart - Billing item definition (see the FS::part_pkg manpage)
25 svcpart - Service definition (see the FS::part_svc manpage)
26 quantity - Quantity of this service definition that this billing item
30 Create a new record. To add the record to the database, see
31 the section on "insert".
34 Adds this record to the database. If there is an error,
35 returns the error, otherwise returns false.
38 Deletes this record from the database. If there is an error,
39 returns the error, otherwise returns false.
42 Replaces OLD_RECORD with this one in the database. If there
43 is an error, returns the error, otherwise returns false.
46 Checks all fields to make sure this is a valid record. If
47 there is an error, returns the error, otherwise returns
48 false. Called by the insert and replace methods.
51 It doesn't properly override FS::Record yet.
54 the FS::Record manpage, the FS::part_pkg manpage, the
55 FS::part_svc manpage, schema.html from the base documentation.
58 ivan@voicenet.com 97-jul-1 added hfields ivan@sisd.com 97-nov-13
60 pod ivan@sisd.com 98-sep-22