X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_main.html;h=b0ce31ae912d75fe5c105f6c3c4e2527e0579cce;hb=refs%2Fheads%2F24899_agent_virt_attach_report;hp=66a3a982592f9c79f29d41f76ef4c30912a72790;hpb=23f2db6452f097640447b9b35dd106f408dbc20b;p=freeside.git diff --git a/httemplate/search/cust_main.html b/httemplate/search/cust_main.html index 66a3a9825..b0ce31ae9 100755 --- a/httemplate/search/cust_main.html +++ b/httemplate/search/cust_main.html @@ -41,12 +41,16 @@ my %search_hash = (); #scalars my @scalars = qw ( - agentnum salesnum status address zip paydate_year paydate_month invoice_terms - no_censustract with_geocode with_email POST no_POST + agentnum salesnum status + address city county state zip country location_history + invoice_terms + no_censustract with_geocode with_email tax no_tax POST no_POST custbatch usernum cancelled_pkgs cust_fields flattened_pkgs all_tags + all_pkg_classnums + any_pkg_status ); for my $param ( @scalars ) { @@ -55,10 +59,17 @@ for my $param ( @scalars ) { } #lists -for my $param (qw( classnum refnum payby tagnum )) { +for my $param (qw( classnum refnum pkg_classnum )) { $search_hash{$param} = [ $cgi->param($param) ]; } +#tags +my $params = $cgi->Vars; +$search_hash{'tagnum'} = [ + map { /^tagnum(\d+)/ && $1 } + grep { /^tagnum(\d+)/ && $cgi->param($_) } keys %$params +]; + ### # parse dates ###