summaryrefslogtreecommitdiff
path: root/FS/FS/cust_main/Billing.pm
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-02-24 15:11:35 -0800
committerMark Wells <mark@freeside.biz>2015-02-24 15:11:35 -0800
commitef7a02376e94a07b6488956c467ae2e2face8b99 (patch)
tree5714f40a40a14a451afda3490031403aa80adefa /FS/FS/cust_main/Billing.pm
parente151a538a611ed5aa3c08164cebc7230e5fa0da1 (diff)
fix for new tax engine, #32866
Diffstat (limited to 'FS/FS/cust_main/Billing.pm')
-rw-r--r--FS/FS/cust_main/Billing.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/FS/FS/cust_main/Billing.pm b/FS/FS/cust_main/Billing.pm
index 9305eb3..87499a9 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) ) {