summaryrefslogtreecommitdiff
path: root/httemplate/edit/cust_main/billing.html
diff options
context:
space:
mode:
authorivan <ivan>2009-06-22 07:50:18 +0000
committerivan <ivan>2009-06-22 07:50:18 +0000
commit73e382b838f031512684138fedb7d813684ddd28 (patch)
treeabe5fd8f8f14f82dcaa880dfefcab14d0a5df33e /httemplate/edit/cust_main/billing.html
parent2f62e9125f1eb98db97a6ddff5b47bb258e6fc60 (diff)
tax exemption by tax name, RT#5127
Diffstat (limited to 'httemplate/edit/cust_main/billing.html')
-rw-r--r--httemplate/edit/cust_main/billing.html11
1 files changed, 10 insertions, 1 deletions
diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html
index 353f2b9a0..f0d9b853a 100644
--- a/httemplate/edit/cust_main/billing.html
+++ b/httemplate/edit/cust_main/billing.html
@@ -359,10 +359,19 @@
<TR><TD>&nbsp;</TD></TR>
+% my @exempt_groups = grep /\S/, $conf->config('tax-cust_exempt-groups');
+
<TR>
- <TD WIDTH="608" COLSPAN="2"><INPUT TYPE="checkbox" NAME="tax" VALUE="Y" <% $cust_main->tax eq "Y" ? 'CHECKED' : '' %>> Tax Exempt</TD>
+ <TD WIDTH="608" COLSPAN="2"><INPUT TYPE="checkbox" NAME="tax" VALUE="Y" <% $cust_main->tax eq "Y" ? 'CHECKED' : '' %>> Tax Exempt<% @exempt_groups ? ' (all taxes)' : '' %></TD>
</TR>
+% foreach my $exempt_group ( @exempt_groups ) {
+% #escape $exempt_group for NAME
+ <TR>
+ <TD WIDTH="608" COLSPAN="2">&nbsp;&nbsp;<INPUT TYPE="checkbox" NAME="tax_<% $exempt_group %>" VALUE="Y" <% $cust_main->tax_exemption($exempt_group) ? 'CHECKED' : '' %>> Tax Exempt (<% $exempt_group %> taxes)<TD>
+ </TR>
+% }
+
% unless ( $conf->exists('emailinvoiceonly') ) {
<TR>