optimize legacy CCH taxation, RT#74494
authorIvan Kohler <ivan@freeside.biz>
Tue, 25 Apr 2017 20:36:37 +0000 (13:36 -0700)
committerIvan Kohler <ivan@freeside.biz>
Tue, 25 Apr 2017 20:36:37 +0000 (13:36 -0700)
FS/FS/tax_rate.pm

index c6fe243..5416ff5 100644 (file)
@@ -689,7 +689,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,
          })