continue prorate cleanup, #10630
[freeside.git] / FS / FS / prospect_main.pm
index 369029b..78e865a 100644 (file)
@@ -41,14 +41,13 @@ from FS::Record.  The following fields are currently supported:
 
 primary key
 
-=item company
-
-company
+=item agentnum
 
-=item locationnum
+Agent
 
-locationnum
+=item company
 
+company
 
 =back
 
@@ -211,6 +210,15 @@ sub check {
   $self->SUPER::check;
 }
 
+=item name
+
+=cut
+
+sub name {
+  my $self = shift;
+  $self->company; #at least until this is nullable
+}
+
 =item contact
 
 Returns the contacts (see L<FS::contact>) associated with this prospect.
@@ -222,6 +230,17 @@ sub contact {
   qsearch( 'contact', { 'prospectnum' => $self->prospectnum } );
 }
 
+=item cust_location
+
+Returns the locations (see L<FS::cust_location>) associated with this prospect.
+
+=cut
+
+sub cust_location {
+  my $self = shift;
+  qsearch( 'cust_location', { 'prospectnum' => $self->prospectnum } );
+}
+
 =item search HASHREF
 
 (Class method)