Merge pull request #19220 from frederic34/patch-4

remove duplicate code
This commit is contained in:
Laurent Destailleur 2021-10-31 16:47:33 +01:00 committed by GitHub
commit c73c962459
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -606,12 +606,6 @@ if ($search_country) {
if ($search_type_thirdparty != '' && $search_type_thirdparty != '-1') {
$sql .= " AND s.fk_typent IN (".$db->sanitize($db->escape($search_type_thirdparty)).')';
}
if ($search_company) {
$sql .= natural_search('s.nom', $search_company);
}
if ($search_company_alias) {
$sql .= natural_search('s.name_alias', $search_company_alias);
}
if ($search_montant_ht != '') {
$sql .= natural_search('f.total_ht', $search_montant_ht, 1);
}