import torrus 1.0.9
[freeside.git] / httemplate / edit / cust_main_county.html
index 510839d..11b8e43 100644 (file)
@@ -6,6 +6,7 @@
                    'country'  => 'Country',
                    'state'    => 'State',
                    'county'   => 'County',
+                   'city'     => 'City',
                    'taxclass' => 'Tax class',
                    'taxname'  => 'Tax name',
                    'tax'      => 'Tax rate',
@@ -21,7 +22,6 @@
 my $conf = new FS::Conf;
 
 </%once>
-
 <%init>
 
 die "access denied"
@@ -29,7 +29,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,6 +45,7 @@ my @fields = (
   { field=>'country',  type=>'fixed-country', },
   { field=>'state',    type=>'fixed-state', },
   { field=>'county',   type=>'fixed', },
+  { field=>'city',     type=>'fixed', },
 );
 
 push @fields, { field=>'taxclass', type=>'fixed', }