From 2997e2695bd8fed9b4df579b1115196f3c5de664 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 10 Feb 2005 21:37:03 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20du=20code=20pays=20dans=20les=20propri?= =?UTF-8?q?=E9t=E9s=20d'une=20soci=E9t=E9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/societe.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/societe.class.php b/htdocs/societe.class.php index ed3b9f430e1..289e5e56887 100644 --- a/htdocs/societe.class.php +++ b/htdocs/societe.class.php @@ -383,7 +383,7 @@ class Societe { $sql .= ", s.fk_forme_juridique as forme_juridique_code, fj.libelle as forme_juridique"; $sql .= ", s.code_client, s.code_compta, s.parent"; $sql .= ", s.fk_departement, s.fk_pays, s.fk_stcomm, s.remise_client"; - $sql .= ", p.libelle as pays"; + $sql .= ", p.code as pays_code, p.libelle as pays"; $sql .= ", st.libelle as stcomm"; $sql .= " FROM ".MAIN_DB_PREFIX."societe as s"; $sql .= ", ".MAIN_DB_PREFIX."c_effectif as e"; @@ -414,6 +414,7 @@ class Societe { $this->departement_id = $obj->fk_departement; $this->pays_id = $obj->fk_pays; + $this->pays_code = $obj->fk_pays?$obj->pays_code:''; $this->pays = $obj->fk_pays?$obj->pays:''; $this->stcomm_id = $obj->fk_stcomm; // statut commercial