X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_tax.html;h=2ab0e0b2e37988e16fa76c267f26965a6ec47d55;hb=c4b71bc4459cb7d403cbebede470aeb2c6292a6e;hp=7a8ecd4f0c0a84962e4e1e0f285c483c36364e96;hpb=b782294eb91805f708a7776fe67f1c0863f4096b;p=freeside.git diff --git a/httemplate/search/report_tax.html b/httemplate/search/report_tax.html index 7a8ecd4f0..2ab0e0b2e 100755 --- a/httemplate/search/report_tax.html +++ b/httemplate/search/report_tax.html @@ -1,40 +1,79 @@ - - - Tax Report Criteria - - -

Tax Report Criteria

-
- - - - <%= include( '/elements/tr-select-agent.html' ) %> - - <%= include( '/elements/tr-input-beginning_ending.html' ) %> - - <% my $conf = new FS::Conf; - if ( $conf->exists('enable_taxclasses') ) { - %> - - - - - <% } %> - - <% my @pkg_class = qsearch('pkg_class', {}); - if ( @pkg_class ) { - %> - - - - - <% } %> - -
Show tax classes
Show package classes
- -
-
- - - +<% include('/elements/header.html', 'Tax Report' ) %> +
+ + + +% if ( $conf->config('tax-report_groups') ) { +% my @lines = $conf->config('tax-report_groups'); + + + + + + +% } + + <% include( '/elements/tr-select-agent.html', 'disable_empty'=>0 ) %> + + <% include( '/elements/tr-input-beginning_ending.html' ) %> + +% if ( $city ) { + + + + +% } + +% if ( $conf->exists('enable_taxclasses') ) { + + + + +% } + +% my @pkg_class = qsearch('pkg_class', {}); +% if ( @pkg_class ) { + + + + +% } + +
Tax group + +
Show cities
Show tax classes
Show package classes
+ +
+ +
+ +<% include('/elements/footer.html') %> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Financial reports'); + +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]; + +