X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fprospect_main.pm;h=55b12f2412d7d9c4393b49095c0a6cd2f7dd44fd;hb=b7c25d5e38e6459efe5d1c2f09f437b79798038e;hp=a18c8ff6744c73a80e1924c2206c9907a6891819;hpb=a858c1b8461b92b6f9daaa1b508b1c2cfc1f0f23;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)