Fix bug [ 1793806 ] Duplicate vendors in InfoProduct search

Reported by GusG (gemmiti)
Solved by MJudd
This commit is contained in:
Carlos Ruiz 2007-09-13 17:23:31 +00:00
parent 2de320b935
commit 0c07ba601a
1 changed files with 1 additions and 1 deletions

View File

@ -424,7 +424,7 @@ public final class InfoProduct extends Info implements ActionListener
// => Vendor // => Vendor
String vendor = fieldVendor.getText().toUpperCase(); String vendor = fieldVendor.getText().toUpperCase();
if (!(vendor.equals("") || vendor.equals("%"))) if (!(vendor.equals("") || vendor.equals("%")))
where.append(" AND UPPER(bp.Name) LIKE ?"); where.append(" AND UPPER(bp.Name) LIKE ? AND ppo.IsCurrentVendor='Y'");
return where.toString(); return where.toString();
} // getSQLWhere } // getSQLWhere