X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_main.html;h=7729da4198ca9a005661bc301890593e67393b6b;hb=c742a74ec444c4606006a14e814d06e0b1795ea4;hp=503e78274f0e56ea997dc612632950d6c5d5f454;hpb=0f12bb525e362f0eb97085079c3046c4bf2f6e64;p=freeside.git diff --git a/httemplate/search/cust_main.html b/httemplate/search/cust_main.html index 503e78274..7729da419 100755 --- a/httemplate/search/cust_main.html +++ b/httemplate/search/cust_main.html @@ -27,7 +27,11 @@ $cgi->param('cust_fields') ) ), - map '', @extra_fields + map { $_ eq 'num_referrals' + ? $referral_link + : '' + } + @extra_fields ], &> <%init> @@ -41,7 +45,8 @@ my %search_hash = (); #scalars my @scalars = qw ( - agentnum salesnum status address city county state zip country + agentnum salesnum status + address city county state zip country location_history paydate_year paydate_month invoice_terms no_censustract with_geocode with_email tax no_tax POST no_POST custbatch usernum @@ -50,6 +55,7 @@ my @scalars = qw ( all_tags all_pkg_classnums any_pkg_status + with_referrals referral_status ); for my $param ( @scalars ) { @@ -103,6 +109,8 @@ my @extra_fields = @{ delete($sql_query->{'extra_fields'}) }; my $link = [ "${p}view/cust_main.cgi?", 'custnum' ]; +my $referral_link = [ "${p}search/cust_main.cgi?referral_custnum=", 'custnum' ]; + ### # email links ###