X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main_county.html;h=9cc5131a2e73c16fc2dc8b6a04c4351b96a0bfdd;hp=510839d71f4127eda6b8c68d36f9b580a06f153c;hb=ff27c3f36240aee48ed50153dd5d8fe3ac3f2443;hpb=5e05724a635a22776f1b973f5d7e77989da4e048 diff --git a/httemplate/edit/cust_main_county.html b/httemplate/edit/cust_main_county.html index 510839d71..9cc5131a2 100644 --- a/httemplate/edit/cust_main_county.html +++ b/httemplate/edit/cust_main_county.html @@ -6,6 +6,8 @@ 'country' => 'Country', 'state' => 'State', 'county' => 'County', + 'city' => 'City', + 'district' => 'District', 'taxclass' => 'Tax class', 'taxname' => 'Tax name', 'tax' => 'Tax rate', @@ -21,7 +23,6 @@ my $conf = new FS::Conf; - <%init> die "access denied" @@ -29,7 +30,8 @@ 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; @@ -44,8 +46,13 @@ my @fields = ( { 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');