X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FTaxEngine%2Finternal.pm;h=99535ad38161bd669bb73eeec24f97a9bd732a58;hp=3b13510b358cc7172cd01b55ef4fb65bd1741730;hb=a0011bf5a1f1aa762b9abf7e61dd3b4cac985fa0;hpb=7badb86e945f91ea4e18c8f52054d30404a43f86 diff --git a/FS/FS/TaxEngine/internal.pm b/FS/FS/TaxEngine/internal.pm index 3b13510b3..99535ad38 100644 --- a/FS/FS/TaxEngine/internal.pm +++ b/FS/FS/TaxEngine/internal.pm @@ -22,12 +22,10 @@ sub add_sale { push @{ $self->{items} }, $cust_bill_pkg; - my $location = $cust_pkg->tax_location; # cacheable? - my @loc_keys = qw( district city county state country ); my %taxhash = map { $_ => $location->get($_) } @loc_keys; - $taxhash{'taxclass'} = $part_pkg->taxclass; + $taxhash{'taxclass'} = $part_item->taxclass; my @taxes = (); # entries are cust_main_county objects my %taxhash_elim = %taxhash;