X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_main%2FBilling.pm;h=d24221ebb866e36d47dd852755d2f5f1875b780d;hb=809450eeedfb9fc86157587e135fd82c94c290fc;hp=3638d00f21aaca6cd27b974d0ecf7e7dd4dc773d;hpb=4bbf4035783020c31df0358980ca54de5893851d;p=freeside.git diff --git a/FS/FS/cust_main/Billing.pm b/FS/FS/cust_main/Billing.pm index 3638d00f2..d24221ebb 100644 --- a/FS/FS/cust_main/Billing.pm +++ b/FS/FS/cust_main/Billing.pm @@ -717,10 +717,12 @@ sub calculate_taxes { #move the cust_tax_exempt_pkg records to the cust_bill_pkgs we will commit my %packagemap = map { $_->pkgnum => $_ } @$cust_bill_pkg; + warn Dumper(\%packagemap) if $DEBUG > 2; foreach my $tax ( keys %$taxlisthash ) { foreach ( @{ $taxlisthash->{$tax} }[1 ... scalar(@{ $taxlisthash->{$tax} })] ) { next unless ref($_) eq 'FS::cust_bill_pkg'; + warn $_->pkgnum."\n" if $DEBUG > 2; push @{ $packagemap{$_->pkgnum}->_cust_tax_exempt_pkg }, splice( @{ $_->_cust_tax_exempt_pkg } ); }