From: ivan Date: Fri, 11 Mar 2011 00:45:53 +0000 (+0000) Subject: prospect qualifications default to prospect address if there's one, other UI cleanups... X-Git-Tag: freeside_2_3_0~519 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=fced2ed0147049fded427862a3517c172f86513e prospect qualifications default to prospect address if there's one, other UI cleanups RT#7111 --- diff --git a/FS/FS/prospect_main.pm b/FS/FS/prospect_main.pm index 369029bab..bace1f040 100644 --- a/FS/FS/prospect_main.pm +++ b/FS/FS/prospect_main.pm @@ -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 @@ -222,6 +221,17 @@ sub contact { qsearch( 'contact', { 'prospectnum' => $self->prospectnum } ); } +=item cust_location + +Returns the locations (see L) associated with this prospect. + +=cut + +sub cust_location { + my $self = shift; + qsearch( 'cust_location', { 'prospectnum' => $self->prospectnum } ); +} + =item search HASHREF (Class method) diff --git a/httemplate/elements/tr-select-cust_location.html b/httemplate/elements/tr-select-cust_location.html index 5802f4ec2..bb10a83de 100644 --- a/httemplate/elements/tr-select-cust_location.html +++ b/httemplate/elements/tr-select-cust_location.html @@ -160,14 +160,8 @@ Example: % if ( $opt{'is_optional'} ) {