2 FS::part_referral - Object methods for part_referral objects
7 $record = create FS::part_referral \%hash
8 $record = create FS::part_referral { '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_referral represents a referral - where a customer
20 heard of your services. This can be used to track the
21 effectiveness of a particular piece of advertising, for example.
22 FS::part_referral inherits from FS::Record. The following fields
23 are currently supported:
25 refnum - primary key (assigned automatically for new referrals)
26 referral - Text name of this referral
29 Creates a new referral. To add the referral to the database,
30 see the section on "insert".
33 Adds this referral to the database. If there is an error,
34 returns the error, otherwise returns false.
37 Currently unimplemented.
40 Replaces OLD_RECORD with this one in the database. If there
41 is an error, returns the error, otherwise returns false.
44 Checks all fields to make sure this is a valid referral. If
45 there is an error, returns the error, otherwise returns
46 false. Called by the insert and replace methods.
49 It doesn't properly override FS::Record yet.
51 The delete method is unimplemented.
54 the FS::Record manpage, the FS::cust_main manpage, schema.html
55 from the base documentation.
58 Class dealing with referrals
60 ivan@sisd.com 98-feb-23
62 pod ivan@sisd.com 98-sep-21