3 <TITLE>FS::svc_Common - Object method for all svc_ records</TITLE>
4 <LINK REV="made" HREF="mailto:ivan@rootwood.sisd.com">
13 <LI><A HREF="#NAME">NAME</A>
14 <LI><A HREF="#SYNOPSIS">SYNOPSIS</A>
15 <LI><A HREF="#DESCRIPTION">DESCRIPTION</A>
16 <LI><A HREF="#METHODS">METHODS</A>
17 <LI><A HREF="#VERSION">VERSION</A>
18 <LI><A HREF="#BUGS">BUGS</A>
19 <LI><A HREF="#SEE_ALSO">SEE ALSO</A>
25 <H1><A NAME="NAME">NAME</A></H1>
27 FS::svc_Common - Object method for all svc_ records
31 <H1><A NAME="SYNOPSIS">SYNOPSIS</A></H1>
36 <CODE>@ISA</CODE> = <CODE>qw(</CODE> FS::svc_Common );
40 <H1><A NAME="DESCRIPTION">DESCRIPTION</A></H1>
42 FS::svc_Common is intended as a base class for table-specific classes to
43 inherit from, i.e. FS::svc_acct. FS::svc_Common inherits from FS::Record.
47 <H1><A NAME="METHODS">METHODS</A></H1>
49 <DT><STRONG><A NAME="item_insert">insert</A></STRONG><DD>
51 Adds this record to the database. If there is an error, returns the error,
52 otherwise returns false.
55 The additional fields pkgnum and svcpart (see <A HREF="../FS/cust_svc.html">FS::cust_svc</A>) should be defined. An FS::cust_svc record will be created and inserted.
57 <DT><STRONG><A NAME="item_delete">delete</A></STRONG><DD>
59 Deletes this account from the database. If there is an error, returns the
60 error, otherwise returns false.
63 The corresponding FS::cust_svc record will be deleted as well.
65 <DT><STRONG><A NAME="item_setfixed">setfixed</A></STRONG><DD>
67 Sets any fixed fields for this service (see <A HREF="../FS/part_svc.html">FS::part_svc</A>). If there is an error, returns the error, otherwise returns the
68 FS::part_svc object (use <CODE>ref()</CODE> to test the return). Usually
69 called by the check method.
71 <DT><STRONG><A NAME="item_setdefault">setdefault</A></STRONG><DD>
73 Sets all fields to their defaults (see <A HREF="../FS/part_svc.html">FS::part_svc</A>), overriding their current values. If there is an error, returns the
74 error, otherwise returns the FS::part_svc object (use <CODE>ref()</CODE> to
77 <DT><STRONG><A NAME="item_suspend">suspend</A></STRONG><DD>
78 <DT><STRONG><A NAME="item_unsuspend">unsuspend</A></STRONG><DD>
79 <DT><STRONG><A NAME="item_cancel">cancel</A></STRONG><DD>
81 Stubs - return false (no error) so derived classes don't need to define
82 these methods. Called by the cancel method of FS::cust_pkg (see <A HREF="../FS/cust_pkg.html">FS::cust_pkg</A>).
87 <H1><A NAME="VERSION">VERSION</A></H1>
89 $Id: svc_Common.html,v 1.1 1999-08-04 12:13:27 ivan Exp $
93 <H1><A NAME="BUGS">BUGS</A></H1>
95 The setfixed method return value.
98 The new method should set defaults from part_svc (like the check method
103 <H1><A NAME="SEE_ALSO">SEE ALSO</A></H1>
105 <A HREF="../FS/Record.html">FS::Record</A>, <A HREF="../FS/cust_svc.html">FS::cust_svc</A>, <A HREF="../FS/part_svc.html">FS::part_svc</A>, <A HREF="../FS/cust_pkg.html">FS::cust_pkg</A>, schema.html from the base documentation.