projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e151a53
)
fix for new tax engine, #32866
author
Mark Wells
<mark@freeside.biz>
Tue, 24 Feb 2015 23:11:35 +0000
(15:11 -0800)
committer
Mark Wells
<mark@freeside.biz>
Tue, 24 Feb 2015 23:11:35 +0000
(15:11 -0800)
FS/FS/cust_main/Billing.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_main/Billing.pm
b/FS/FS/cust_main/Billing.pm
index
9305eb3
..
87499a9
100644
(file)
--- 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 };
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) ) {
$cust_bill_pkg{$pass} = [];
}
} elsif ( ($cust_pkg->no_auto || $part_pkg->no_auto) ) {