X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fprospect_main.pm;h=55b12f2412d7d9c4393b49095c0a6cd2f7dd44fd;hb=3317a32f572a2e3605071410e7ddd8082e0b03ee;hp=a18c8ff6744c73a80e1924c2206c9907a6891819;hpb=3d0a1bb06b895c5be6e3f0517d355442a6b1e125;p=freeside.git diff --git a/FS/FS/prospect_main.pm b/FS/FS/prospect_main.pm index a18c8ff67..55b12f241 100644 --- a/FS/FS/prospect_main.pm +++ b/FS/FS/prospect_main.pm @@ -1,14 +1,11 @@ package FS::prospect_main; +use base qw( FS::Quotable_Mixin FS::o2m_Common FS::Record ); use strict; -use base qw( FS::Quotable_Mixin FS::o2m_Common FS::Record ); use vars qw( $DEBUG @location_fields ); use Scalar::Util qw( blessed ); -use FS::Record qw( dbh qsearch qsearchs ); -use FS::agent; +use FS::Record qw( dbh qsearch ); # qsearchs ); use FS::cust_location; -use FS::contact; -use FS::qual; $DEBUG = 0; @@ -275,13 +272,6 @@ sub name { Returns the contacts (see L) associated with this prospect. -=cut - -sub contact { - my $self = shift; - qsearch( 'contact', { 'prospectnum' => $self->prospectnum } ); -} - =item cust_location Returns the locations (see L) associated with this prospect. @@ -298,24 +288,10 @@ sub cust_location { Returns the qualifications (see L) associated with this prospect. -=cut - -sub qual { - my $self = shift; - qsearch( 'qual', { 'prospectnum' => $self->prospectnum } ); -} - =item agent Returns the agent (see L) for this customer. -=cut - -sub agent { - my $self = shift; - qsearchs( 'agent', { 'agentnum' => $self->agentnum } ); -} - =item search HASHREF (Class method)