2 FS::cust_svc - Object method for cust_svc objects
7 $record = create FS::cust_svc \%hash
8 $record = create FS::cust_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::cust_svc represents a service. FS::cust_svc inherits from
20 FS::Record. The following fields are currently supported:
22 svcnum - primary key (assigned automatically for new services)
23 pkgnum - Package (see the FS::cust_pkg manpage)
24 svcpart - Service definition (see the FS::part_svc manpage)
27 Creates a new service. To add the refund to the database,
28 see the section on "insert". Services are normally created
29 by creating FS::svc_ objects (see the FS::svc_acct manpage,
30 the FS::svc_domain manpage, and the FS::svc_acct_sm manpage,
34 Adds this service to the database. If there is an error,
35 returns the error, otherwise returns false.
38 Deletes this service from the database. If there is an
39 error, returns the error, otherwise returns false.
41 Called by the cancel method of the package (see the
42 FS::cust_pkg manpage).
45 Replaces the OLD_RECORD with this one in the database. If
46 there is an error, returns the error, otherwise returns
50 Checks all fields to make sure this is a valid service. If
51 there is an error, returns the error, otehrwise returns
52 false. Called by the insert and replace methods.
55 Behaviour of changing the svcpart of cust_svc records is
56 undefined and should possibly be prohibited, and pkg_svc records
59 pkg_svc records are not checket in general (here).
62 the FS::Record manpage, the FS::cust_pkg manpage, the
63 FS::part_svc manpage, the FS::pkg_svc manpage, schema.html from
64 the base documentation
67 ivan@voicenet.com 97-jul-10,14
69 no TableUtil, no FS::Lock ivan@sisd.com 98-mar-7
71 pod ivan@sisd.com 98-sep-21