2 FS::pkg_svc - Object methods for pkg_svc records
7 $record = new FS::pkg_svc \%hash;
8 $record = new 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 $Id: pkg_svc.txt,v 1.3 1999-04-08 13:39:32 ivan Exp $
55 the FS::Record manpage, the FS::part_pkg manpage, the
56 FS::part_svc manpage, schema.html from the base documentation.
59 ivan@voicenet.com 97-jul-1 added hfields ivan@sisd.com 97-nov-13
61 pod ivan@sisd.com 98-sep-22
64 Revision 1.3 1999-04-08 13:39:32 ivan
65 convert from pod for 1.2.0 release
66 Revision 1.3 1999/01/18 21:58:08 ivan
67 esthetic: eq and ne were used in a few places instead of == and
70 Revision 1.2 1998/12/29 11:59:51 ivan mostly properly OO, some
71 work still to be done with svc_ stuff