disable old no_censustract and with_geocode search options and move to cust_pkg searc...
[freeside.git] / httemplate / search / report_cust_pkg.html
index b3f2004..e75a098 100755 (executable)
     <& /elements/tr-title.html, value => mt('Location search options') &>
 
 %   my @location_options = qw(cust nocust census nocensus);
+%   if ( $conf->exists('enable_taxproducts') ) {
+%     push @location_options, 'geocode', 'nogeocode';
+%   }
     <& /elements/tr-checkbox-multiple.html,
                 'label'   => 'Where package location:',
                 'field'   => 'loc',
                                'nocust'   => "is not the customer's default location",
                                'census'   => "has a census tract",
                                'nocensus' => "does not have a census tract",
+                               'nogeocode'=> 'has an implicit tax location',
+                               'geocode'  => 'has a hardcoded tax location',
                              },
                 'value'   => { map { $_ => 1 } @location_options },
     &>
@@ -274,4 +279,5 @@ my %checkbox = (
   'cancel'    => 1,
 );
 
+my $conf = FS::Conf->new;
 </%once>