From faadb1bcccbbdfee91afffded23dfebb89ebafe0 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 8 May 2012 15:34:37 -0700 Subject: separate tax exemption numbers for individual exemptions w/tax-cust_exempt-groups, RT#17658 --- httemplate/view/cust_main/billing.html | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'httemplate/view') diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html index f1add6fcc..510847f6b 100644 --- a/httemplate/view/cust_main/billing.html +++ b/httemplate/view/cust_main/billing.html @@ -189,15 +189,21 @@ % my $no = emt('no'); % my @exempt_groups = grep /\S/, $conf->config('tax-cust_exempt-groups'); - - <% mt('Tax exempt') |h %><% @exempt_groups ? ' ('.emt('all taxes').')' : '' %> - <% $cust_main->tax ? $yes : $no %> - +% unless ( $conf->exists('tax-cust_exempt-groups-require_individual_nums') ) { + + <% mt('Tax exempt') |h %><% @exempt_groups ? ' ('.emt('all taxes').')' : '' %> + <% $cust_main->tax ? $yes : $no %> + +% } + % foreach my $exempt_group ( @exempt_groups ) { - - <% mt('Tax exempt') |h %> (<% $exempt_group %> taxes) - <% $cust_main->tax_exemption($exempt_group) ? $yes : $no %> - +% my $cust_main_exemption = $cust_main->tax_exemption($exempt_group); + + <% mt('Tax exempt') |h %> (<% $exempt_group %> taxes) + <% $cust_main_exemption ? $yes : $no %> + <% $cust_main_exemption ? $cust_main_exemption->exempt_number : '' |h %> + + % } % if ( $conf->exists('enable_taxproducts') ) { -- cgit v1.2.1