This commit is contained in:
Florian HENRY 2021-10-08 13:14:08 +02:00
parent 7ffa8a14ab
commit 0d47797be7

View File

@ -87,9 +87,9 @@ if (GETPOST('newcompany') || GETPOST('socid', 'int') || GETPOST('id_fourn', 'int
$socid = GETPOST('id_fourn', 'int'); $socid = GETPOST('id_fourn', 'int');
} }
$sql = "SELECT rowid, nom"; $sql = "SELECT s.rowid, s.nom";
if (!empty($conf->global->SOCIETE_ADD_REF_IN_LIST)) { if (!empty($conf->global->SOCIETE_ADD_REF_IN_LIST)) {
$sql .= "s.client, s.fournisseur, s.code_client, s.code_fournisseur"; $sql .= ", s.client, s.fournisseur, s.code_client, s.code_fournisseur";
} }
if (!empty($conf->global->COMPANY_SHOW_ADDRESS_SELECTLIST)) { if (!empty($conf->global->COMPANY_SHOW_ADDRESS_SELECTLIST)) {
$sql .= ", s.address, s.zip, s.town"; $sql .= ", s.address, s.zip, s.town";