fix new tax report w/FS::tax_rate_location->location_sql, RT#12332
[freeside.git] / FS / FS / tax_rate.pm
index ea605fe..8185d99 100644 (file)
@@ -1894,7 +1894,7 @@ sub generate_liability_report {
 
       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
                                                    );