From ef7a02376e94a07b6488956c467ae2e2face8b99 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Tue, 24 Feb 2015 15:11:35 -0800 Subject: [PATCH] fix for new tax engine, #32866 --- FS/FS/cust_main/Billing.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/FS/FS/cust_main/Billing.pm b/FS/FS/cust_main/Billing.pm index 9305eb33a..87499a91a 100644 --- a/FS/FS/cust_main/Billing.pm +++ b/FS/FS/cust_main/Billing.pm @@ -537,7 +537,12 @@ sub bill { push @passes, $pass; $total_setup{$pass} = do { my $z = 0; \$z }; $total_recur{$pass} = do { my $z = 0; \$z }; - $taxlisthash{$pass} = {}; + # it also needs its own tax context + $tax_engines{$pass} = FS::TaxEngine->new( + cust_main => $self, + invoice_time => $invoice_time, + cancel => $options{cancel} + ); $cust_bill_pkg{$pass} = []; } } elsif ( ($cust_pkg->no_auto || $part_pkg->no_auto) ) { -- 2.11.0