X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_tax.html;h=2ab0e0b2e37988e16fa76c267f26965a6ec47d55;hb=b6dbe0f12dbbe4ea5209367f905f937789b5b607;hp=217f481468d28d5617c8cf12ec8bd449cacb30f5;hpb=f8cde7e13b431e0f159906b96b0c4d02382a875d;p=freeside.git diff --git a/httemplate/search/report_tax.html b/httemplate/search/report_tax.html index 217f48146..2ab0e0b2e 100755 --- a/httemplate/search/report_tax.html +++ b/httemplate/search/report_tax.html @@ -32,6 +32,13 @@ <% include( '/elements/tr-input-beginning_ending.html' ) %> +% if ( $city ) { + + + Show cities + +% } + % if ( $conf->exists('enable_taxclasses') ) { @@ -61,4 +68,12 @@ die "access denied" my $conf = new FS::Conf; +my $city_sql = "SELECT COUNT(*) FROM cust_main_county + WHERE city != '' AND city IS NOT NULL + LIMIT 1"; + +my $city_sth = dbh->prepare($city_sql) or die dbh->errstr; +$city_sth->execute or die $city_sth->errstr; +my $city = $city_sth->fetchrow_arrayref->[0]; +