This commit is contained in:
Laurent Destailleur 2026-05-21 22:40:04 +02:00
parent 7d2851ec48
commit c2952cb4ad
2 changed files with 7 additions and 6 deletions

View file

@ -172,9 +172,10 @@ $arrayofeinvoiceneed = array(
'PL' => array('module' => array('ksef'), 'search' => 'ksef')
);
$urleinvoice = '';
if ($mysoc->country_code && in_array($mysoc->country_code, array_keys($arrayofeinvoiceneed))) {
$einvoiceneed = $arrayofeinvoiceneed[$mysoc->country_code];
$urleinvoice = '';
$modulefound = '';
if (!empty($einvoiceneed['module'])) {
foreach ($einvoiceneed['module'] as $module) {

View file

@ -252,11 +252,11 @@ class ToolThirdParty extends McpTool
$sql .= " AND s.rowid = " . (int) $query;
$limit = 1;
} else {
$sql .= " AND (s.nom LIKE '%" . $this->db->escape($q) . "%'";
$sql .= " OR s.name_alias LIKE '%" . $this->db->escape($q) . "%'";
$sql .= " OR s.code_client LIKE '%" . $this->db->escape($q) . "%'";
$sql .= " OR s.code_fournisseur LIKE '%" . $this->db->escape($q) . "%'";
$sql .= " OR s.email LIKE '%" . $this->db->escape($q) . "%')";
$sql .= " AND (s.nom LIKE '%" . $this->db->escape($query) . "%'";
$sql .= " OR s.name_alias LIKE '%" . $this->db->escape($query) . "%'";
$sql .= " OR s.code_client LIKE '%" . $this->db->escape($query) . "%'";
$sql .= " OR s.code_fournisseur LIKE '%" . $this->db->escape($query) . "%'";
$sql .= " OR s.email LIKE '%" . $this->db->escape($query) . "%')";
}
if ($type === 'customer') {