fix multiple pkgpart search, RT#5924
[freeside.git] / httemplate / search / report_cust_main.html
index 41266ae..f139d4b 100755 (executable)
@@ -8,11 +8,19 @@
     <TR>
       <TH BGCOLOR="#e8e8e8" COLSPAN=2 ALIGN="left"><FONT SIZE="+1">Search options</FONT></TH>
     </TR>
+
     <% include( '/elements/tr-select-agent.html',
-                   ($cgi->param('agentnum') || ''),
+                  'curr_value'    => scalar($cgi->param('agentnum')),
+                  'disable_empty' => 0,
                )
     %>
 
+    <% include( '/elements/tr-select-cust_main-status.html',
+                  'label' => 'Status'
+              )
+    %>
+
+
 %   foreach my $field (qw( signupdate )) {
 
       <TR>
         <TD><INPUT TYPE="checkbox" NAME="cancelled_pkgs"></TD>
     </TR>
 
+%   if ( $conf->exists('cust_main-require_censustract') ) {
+
+    <TR>
+      <TD ALIGN="right" VALIGN="center">Without census tract</TD>
+        <TD><INPUT TYPE="checkbox" NAME="no_censustract"></TD>
+    </TR>
+
+%   }
+
     <TR>
       <TH BGCOLOR="#e8e8e8" COLSPAN=2>&nbsp;</TH>
     </TR>
@@ -76,6 +93,8 @@ die "access denied"
            $FS::CurrentUser::CurrentUser->access_right('List packages')
          );;
 
+my $conf = new FS::Conf;
+
 </%init>
 <%once>