diff options
author | ivan <ivan> | 2006-01-26 15:27:10 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-01-26 15:27:10 +0000 |
commit | b782294eb91805f708a7776fe67f1c0863f4096b (patch) | |
tree | 3c6987f38b65a72118b8a369869719a12d8cf141 /httemplate/search/report_tax.html | |
parent | cbbd0225b07269209c674733bcf70f1c1308e84a (diff) |
whew, FINALLY can fix monthly exemption columns to work correctly. also make them agent-specific. also fix package exemption columns, they were bunk too, sheesh. start adding package classes for package class tax reporting.
Diffstat (limited to 'httemplate/search/report_tax.html')
-rwxr-xr-x | httemplate/search/report_tax.html | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/httemplate/search/report_tax.html b/httemplate/search/report_tax.html index eeaccc1ab..7a8ecd4f0 100755 --- a/httemplate/search/report_tax.html +++ b/httemplate/search/report_tax.html @@ -5,18 +5,36 @@ <BODY BGCOLOR="#e8e8e8"> <H1>Tax Report Criteria</H1> <FORM ACTION="report_tax.cgi" METHOD="GET"> + <TABLE> + <%= include( '/elements/tr-select-agent.html' ) %> + <%= include( '/elements/tr-input-beginning_ending.html' ) %> - <TR> - <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="show_taxclasses" VALUE="1"></TD> - <TD>Show tax classes</TD> - </TR> - </TABLE> - <BR><INPUT TYPE="submit" VALUE="Get Report"> + <% my $conf = new FS::Conf; + if ( $conf->exists('enable_taxclasses') ) { + %> + <TR> + <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="show_taxclasses" VALUE="1"></TD> + <TD>Show tax classes</TD> + </TR> + <% } %> + <% my @pkg_class = qsearch('pkg_class', {}); + if ( @pkg_class ) { + %> + <TR> + <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="show_pkgclasses" VALUE="1"></TD> + <TD>Show package classes</TD> + </TR> + <% } %> + + </TABLE> + + <BR><INPUT TYPE="submit" VALUE="Get Report"> </FORM> + </BODY> </HTML> |