X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_tax.html;h=2ab0e0b2e37988e16fa76c267f26965a6ec47d55;hb=c4b71bc4459cb7d403cbebede470aeb2c6292a6e;hp=8640e0ee720927f545f684361116c04451bd1873;hpb=8d9be02c9965db4c4a48a2221455160685a95462;p=freeside.git diff --git a/httemplate/search/report_tax.html b/httemplate/search/report_tax.html index 8640e0ee7..2ab0e0b2e 100755 --- a/httemplate/search/report_tax.html +++ b/httemplate/search/report_tax.html @@ -8,7 +8,7 @@ % my @lines = $conf->config('tax-report_groups'); - Tax group + Tax group + 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]; +