X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Ftax_rate.pm;h=12a3e987ff78bb6a8b8e5c4785e1368dd54b8244;hb=428a33ad6d0e01621717840d2db4861f4bee6c21;hp=ab1a69eab9732c68aae9ef1d3f8eeeb1c8be88e9;hpb=76a1482705a98e2bbec4ed1e44a50ab01dee8b03;p=freeside.git diff --git a/FS/FS/tax_rate.pm b/FS/FS/tax_rate.pm index ab1a69eab..12a3e987f 100644 --- a/FS/FS/tax_rate.pm +++ b/FS/FS/tax_rate.pm @@ -575,9 +575,11 @@ sub taxline { } elsif ( $self->unittype == 2 ) { + my $locationnum = $cust_bill_pkg->tax_locationnum + || $cust_main->ship_locationnum; # 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.