fix new tax report w/FS::tax_rate_location->location_sql, RT#12332
[freeside.git] / httemplate / search / report_newtax.cgi
index 0961bbb..5b8604b 100755 (executable)
@@ -121,7 +121,7 @@ foreach my $t (qsearch({ table     => 'cust_bill_pkg',
 
     my $payby_itemdesc_loc = 
       "    payby != 'COMP' ".
-      "AND itemdesc = ? OR ? = '' AND itemdesc IS NULL ".
+      "AND ( itemdesc = ? OR ? = '' AND itemdesc IS NULL ) ".
       "AND ". FS::tax_rate_location->location_sql( map { $_ => $t->$_ }
                                                        @taxparams
                                                  );