1 package FS::svc_realestate;
2 use base qw(FS::svc_Common);
8 use FS::Record qw(qsearchs qsearch dbh);
11 $FS::UID::callback{'FS::svc_realestate'} = sub {
17 FS::svc_realestate - Object methods for svc_realestate records
25 A FS::svc_realestate object represents a billable real estate trasnaction,
26 such as renting a home or office.
28 FS::svc_realestate inherits from FS::svc_Common. The following fields are
33 =item svcnum - primary key
43 Instantiates a new svc_realestate object.
48 tie my %fields, 'Tie::IxHash',
50 description => 'Descriptive label',
51 property => 'Real estate property';
54 name => 'Real estate',
55 name_plural => 'Real estate services',
56 longname_plural => 'Real estate services',
57 display_weight => 100,
63 sub table {'svc_realestate'};
65 # todo- In what context is this called? Mimic stub behavior w/o the warning
66 sub label { $_[0]->svcnum }
70 I have an unfounded suspicion this method serves no purpose in this context
74 sub search_sql {die "search_sql called on FS::svc_realestate"}
78 Adds this record to the database. If there is an error, returns the error,
79 otherwise returns false.
83 Delete this record from the database.
85 =item replace OLD_RECORD
87 Replaces the OLD_RECORD with this one in the database. If there is an error,
88 returns the error, otherwise returns false.
92 Checks all fields to make sure this is a valid record. If there is
93 an error, returns the error, otherwise returns false. Called by the insert
102 L<FS::Record>, schema.html from the base documentation.