projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix problems with tax calculation, #33587, from #18509
[freeside.git]
/
FS
/
FS
/
tax_rate.pm
diff --git
a/FS/FS/tax_rate.pm
b/FS/FS/tax_rate.pm
index
ab1a69e
..
12a3e98
100644
(file)
--- a/
FS/FS/tax_rate.pm
+++ b/
FS/FS/tax_rate.pm
@@
-575,9
+575,11
@@
sub taxline {
} elsif ( $self->unittype == 2 ) {
} elsif ( $self->unittype == 2 ) {
+ my $locationnum = $cust_bill_pkg->tax_locationnum
+ || $cust_main->ship_locationnum;
# per account
# per account
- $units = 1 unless $seen{$
cust_bill_pkg->tax_
locationnum};
- $seen{$
cust_bill_pkg->tax_
locationnum} = 1;
+ $units = 1 unless $seen{$locationnum};
+ $seen{$locationnum} = 1;
} else {
# Unittype 19 is used for prepaid wireless E911 charges in many states.
} else {
# Unittype 19 is used for prepaid wireless E911 charges in many states.