X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fqual.cgi;h=cf4f3d1117b08e780b45f759da043efc3fc9119f;hb=b1dacaef3f9773c72b4c6f525d2f1e584e1432fc;hp=58e011406bf8dd993e74b7fc27184d6a68750d10;hpb=c58774a70c3326ad2ba5a7a38b174dfbd76a9f78;p=freeside.git diff --git a/httemplate/search/qual.cgi b/httemplate/search/qual.cgi index 58e011406..cf4f3d111 100755 --- a/httemplate/search/qual.cgi +++ b/httemplate/search/qual.cgi @@ -43,7 +43,7 @@ }, sub { my $self = shift; - my $export = $self->export; + my $export = $self->part_export; my $result = '(manual)'; $result = $export->exportname if $export; $result; @@ -73,6 +73,10 @@ my $extra_sql = ''; if ( $cgi->param('custnum') && $cgi->param('custnum') =~ /^(\d+)$/ ) { $extra_sql = " where custnum = $1 or locationnum in " . " (select locationnum from cust_location where custnum = $1)"; +} elsif ( $cgi->param('prospectnum') + && $cgi->param('prospectnum') =~ /^(\d+)$/ ) { + $extra_sql = " where prospectnum = $1 or locationnum in " + . " (select locationnum from cust_location where prospectnum = $1)"; }