Merge pull request #9368 from atm-ph/fix_7.0_search_company_by_code
Fix search company by code
This commit is contained in:
commit
fe7a0c894f
@ -1102,8 +1102,9 @@ class Form
|
|||||||
if (count($scrit) > 1) $sql.=")";
|
if (count($scrit) > 1) $sql.=")";
|
||||||
if (! empty($conf->barcode->enabled))
|
if (! empty($conf->barcode->enabled))
|
||||||
{
|
{
|
||||||
$sql .= " OR s.barcode LIKE '".$this->db->escape($filterkey)."%'";
|
$sql .= " OR s.barcode LIKE '".$this->db->escape($prefix.$filterkey)."%'";
|
||||||
}
|
}
|
||||||
|
$sql.= " OR s.code_client LIKE '".$this->db->escape($prefix.$filterkey)."%' OR s.code_fournisseur LIKE '".$this->db->escape($prefix.$filterkey)."%'";
|
||||||
$sql.=")";
|
$sql.=")";
|
||||||
}
|
}
|
||||||
$sql.=$this->db->order("nom","ASC");
|
$sql.=$this->db->order("nom","ASC");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user