% include( '/elements/header.html', 'Developer Documentation' ) %> <& /elements/menubar.html, 'Freeside Perl Modules' => $fsurl.'docs/library/FS.html', 'Complete Index' => $fsurl.'docs/library/index.html', &>
FS::realestate_location - Object representing a realestate_location record
use FS::realestate_location;
$location = new FS::realestate_location \%values;
$location = new FS::realestate_location {
agentnum => 1,
location_title => 'Superdome',
address1 => '1500 Sugar Bowl Dr',
city => 'New Orleans',
state => 'LA',
zip => '70112',
};
$error = $location->insert;
$error = $new_loc->replace($location);
$error = $record->check;
$error = $location->add_unit('Box Seat No. 42');
@units = $location->units;
An FS::realestate_location object represents a location for one or more FS::realestate_unit objects. Expected to contain at least one unit, as only realestate_unit objects are assignable to packages via FS::svc_realestate.
FS::realestate_location inherits from FS::Record.
The following fields are currently supported:
FS::realestate_location records should never be deleted, only disabled
Returns the associated agent
Create an associated FS::realestate_unit record
Returns all units associated with this location
FS::record, FS::realestate_unit, FS::svc_realestate
Hey! The above document had some coding errors, which are explained below:
You forgot a '=back' before '=head1'