fix tax-on-tax (i.e. FEDERAL UNIVERSAL SERVICE FUND) on 2.3 branch, RT#20707
authorIvan Kohler <ivan@freeside.biz>
Fri, 21 Dec 2012 03:31:49 +0000 (19:31 -0800)
committerIvan Kohler <ivan@freeside.biz>
Fri, 21 Dec 2012 03:31:49 +0000 (19:31 -0800)
FS/FS/cust_main/Billing.pm

index 0fb91ef..3837ad2 100644 (file)
@@ -799,7 +799,7 @@ sub calculate_taxes {
   my %packagemap = map { $_->pkgnum => $_ } @$cust_bill_pkg;
   foreach my $tax ( keys %$taxlisthash ) {
     foreach ( @{ $taxlisthash->{$tax} }[1 .. scalar(@{ $taxlisthash->{$tax}}) - 1] ) {
-      #next unless ref($_) eq 'FS::cust_bill_pkg'; #no longer needed
+      next unless ref($_) eq 'FS::cust_bill_pkg';
 
       my @cust_tax_exempt_pkg = splice( @{ $_->_cust_tax_exempt_pkg } );