diff options
author | Ivan Kohler <ivan@freeside.biz> | 2012-04-15 15:38:27 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2012-04-15 15:38:27 -0700 |
commit | 2ce6ee8e5cd817a4018ad26eb1e364198c1dd931 (patch) | |
tree | f1f1d447c8dc76060a07ed594691dbacd7658425 /httemplate/view/cust_main/billing.html | |
parent | 33013bb1ef0b5f07105fe13f5bfc06350fc4d868 (diff) |
add cust_class-tax_exempt conf setting to control the tax exemption flag per customer class rather than per indivual customer, RT#16818
Diffstat (limited to 'httemplate/view/cust_main/billing.html')
-rw-r--r-- | httemplate/view/cust_main/billing.html | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html index 522c6db86..4d55f7002 100644 --- a/httemplate/view/cust_main/billing.html +++ b/httemplate/view/cust_main/billing.html @@ -189,15 +189,19 @@ % my $no = emt('no'); % my @exempt_groups = grep /\S/, $conf->config('tax-cust_exempt-groups'); -<TR> - <TD ALIGN="right"><% mt('Tax exempt') |h %><% @exempt_groups ? ' ('.emt('all taxes').')' : '' %></TD> - <TD BGCOLOR="#ffffff"><% $cust_main->tax ? $yes : $no %></TD> -</TR> + +% unless ( $conf->exists('cust_class-tax_exempt') ) { + <TR> + <TD ALIGN="right"><% mt('Tax exempt') |h %><% @exempt_groups ? ' ('.emt('all taxes').')' : '' %></TD> + <TD BGCOLOR="#ffffff"><% $cust_main->tax ? $yes : $no %></TD> + </TR> +% } + % foreach my $exempt_group ( @exempt_groups ) { -<TR> - <TD ALIGN="right"><% mt('Tax exempt') |h %> (<% $exempt_group %> taxes)</TD> - <TD BGCOLOR="#ffffff"><% $cust_main->tax_exemption($exempt_group) ? $yes : $no %></TD> -</TR> + <TR> + <TD ALIGN="right"><% mt('Tax exempt') |h %> (<% $exempt_group %> taxes)</TD> + <TD BGCOLOR="#ffffff"><% $cust_main->tax_exemption($exempt_group) ? $yes : $no %></TD> + </TR> % } % if ( $conf->exists('enable_taxproducts') ) { |