summaryrefslogtreecommitdiff
path: root/httemplate/search/report_cust_main.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-11-02 12:33:23 -0800
committerIvan Kohler <ivan@freeside.biz>2014-11-02 12:33:23 -0800
commite679fff4ed72a972cc650a394814e6869719f98b (patch)
tree78cd86d15b309574286629e0b92855985558afac /httemplate/search/report_cust_main.html
parentcbcd29b65e7899f487e962a301435a32dba001e2 (diff)
search for tax-exempt customers, RT#31481
Diffstat (limited to 'httemplate/search/report_cust_main.html')
-rwxr-xr-xhttemplate/search/report_cust_main.html30
1 files changed, 29 insertions, 1 deletions
diff --git a/httemplate/search/report_cust_main.html b/httemplate/search/report_cust_main.html
index 16a8122e8..994f9503b 100755
--- a/httemplate/search/report_cust_main.html
+++ b/httemplate/search/report_cust_main.html
@@ -204,7 +204,35 @@
}
}
</SCRIPT>
-
+
+% my @exempt_groups = grep /\S/, $conf->config('tax-cust_exempt-groups');
+% unless ( @exempt_groups ) {
+
+% #falze laziness with With/Without postal mail invoices
+ <TR>
+ <TD ALIGN="right" VALIGN="center"><% mt('Tax exempt') |h %></TD>
+ <TD><INPUT TYPE="checkbox" NAME="tax" ID="tax" onClick="tax_changed();"></TD>
+ </TR>
+
+ <TR>
+ <TD ALIGN="right" VALIGN="center"><% mt('Not tax exempt') |h %></TD>
+ <TD><INPUT TYPE="checkbox" NAME="no_tax" ID="no_tax" onClick="no_tax_changed();"></TD>
+ </TR>
+
+ <SCRIPT TYPE="text/javascript">
+ function tax_changed() {
+ if ( document.getElementById('tax').checked == true ) {
+ document.getElementById('no_tax').checked = false;
+ }
+ }
+ function no_tax_changed() {
+ if ( document.getElementById('no_tax').checked == true ) {
+ document.getElementById('tax').checked = false;
+ }
+ }
+ </SCRIPT>
+% }
+
<TR>
<TD ALIGN="right"><% mt('Invoice terms') |h %></TD>
<TD>