'country' => 'Country',
'state' => 'State',
'county' => 'County',
+ 'city' => 'City',
+ 'district' => 'District',
'taxclass' => 'Tax class',
'taxname' => 'Tax name',
'tax' => 'Tax rate',
my $conf = new FS::Conf;
</%once>
-
<%init>
die "access denied"
my $taxnum;
if ( $cgi->param('error') ) {
- $cgi->param('taxnum') =~ /^(\d+)$/ or die 'error, but no taxnum';
+ $cgi->param('taxnum') =~ /^(\d+)$/
+ or die "no taxnum, but error: ". $cgi->param('error');
$taxnum = $1;
} else {
my($query) = $cgi->keywords;
{ field=>'country', type=>'fixed-country', },
{ field=>'state', type=>'fixed-state', },
{ field=>'county', type=>'fixed', },
+ { field=>'city', type=>'fixed', },
+ { field=>'source', type=>'hidden', },
);
+push @fields, { field=>'district', type=>'fixed', }
+ if $cust_main_county->district;
+
push @fields, { field=>'taxclass', type=>'fixed', }
if $conf->exists('enable_taxclasses');