[freeside-commits] freeside/httemplate/view/cust_main billing.html, 1.16, 1.17
Ivan,,,
ivan at wavetail.420.am
Mon Jun 22 00:50:20 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main
In directory wavetail.420.am:/tmp/cvs-serv11986/httemplate/view/cust_main
Modified Files:
billing.html
Log Message:
tax exemption by tax name, RT#5127
Index: billing.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/billing.html,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- billing.html 14 May 2009 16:25:21 -0000 1.16
+++ billing.html 22 Jun 2009 07:50:18 -0000 1.17
@@ -159,11 +159,18 @@
</TR>
% }
-
+% my @exempt_groups = grep /\S/, $conf->config('tax-cust_exempt-groups');
<TR>
- <TD ALIGN="right">Tax exempt</TD>
+ <TD ALIGN="right">Tax exempt<% @exempt_groups ? ' (all taxes)' : '' %></TD>
<TD BGCOLOR="#ffffff"><% $cust_main->tax ? 'yes' : 'no' %></TD>
</TR>
+% foreach my $exempt_group ( @exempt_groups ) {
+<TR>
+ <TD ALIGN="right">Tax exempt (<% $exempt_group %> taxes)</TD>
+ <TD BGCOLOR="#ffffff"><% $cust_main->tax_exemption($exempt_group) ? 'yes' : 'no' %></TD>
+</TR>
+% }
+
% if ( $conf->exists('enable_taxproducts') ) {
<TR>
<TD ALIGN="right">Tax location</TD>
More information about the freeside-commits
mailing list