summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2017-04-25 13:36:41 -0700
committerIvan Kohler <ivan@freeside.biz>2017-04-25 13:36:41 -0700
commita33bb156250931929f9f96f7a0cc60bc9e149d22 (patch)
treec50b639aa1d1187e6022fbd7b0ad0c9ae3aa30bc
parent861c90163e1b7c564ef7905d657b3cf16e7a328d (diff)
optimize legacy CCH taxation, RT#74494
-rw-r--r--FS/FS/tax_rate.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/tax_rate.pm b/FS/FS/tax_rate.pm
index b18f8ee19..8c08f4294 100644
--- a/FS/FS/tax_rate.pm
+++ b/FS/FS/tax_rate.pm
@@ -726,7 +726,9 @@ sub tax_on_tax {
"AND (". join(' OR ', map { "taxclassnum = $_" } @taxclassnums ). ")";
qsearch({ 'table' => 'tax_rate',
- 'hashref' => { 'geocode' => $geocode, },
+ 'hashref' => { 'data_vendor' => $self->data_vendor,
+ 'geocode' => $geocode,
+ },
'extra_sql' => $extra_sql,
})