From 7d8910505693c16771a3636efc2276d630f3550f Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 8 Oct 2004 08:04:20 +0000 Subject: [PATCH] Modif indentation --- htdocs/societe.class.php | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/htdocs/societe.class.php b/htdocs/societe.class.php index 3b084897528..4e452eb83c0 100644 --- a/htdocs/societe.class.php +++ b/htdocs/societe.class.php @@ -140,11 +140,22 @@ class Societe { $sql = "UPDATE ".MAIN_DB_PREFIX."societe "; $sql .= " SET nom = '" . trim($this->nom) ."'"; // Champ obligatoire - if (trim($this->adresse)) { $sql .= ",address = '" . trim($this->adresse) ."'"; } - if (trim($this->cp)) { $sql .= ",cp = '" . trim($this->cp) ."'"; } - if (trim($this->ville)) { $sql .= ",ville = '" . trim($this->ville) ."'"; } - if (trim($this->departement_id)) { $sql .= ",fk_departement = '" . $this->departement_id ."'"; } - if (trim($this->pays_id)) { $sql .= ",fk_pays = '" . $this->pays_id ."'"; } + + if (trim($this->adresse)) + { $sql .= ",address = '" . trim($this->adresse) ."'"; } + + if (trim($this->cp)) + { $sql .= ",cp = '" . trim($this->cp) ."'"; } + + if (trim($this->ville)) + { $sql .= ",ville = '" . trim($this->ville) ."'"; } + + if (trim($this->departement_id)) + { $sql .= ",fk_departement = '" . $this->departement_id ."'"; } + + if (trim($this->pays_id)) + { $sql .= ",fk_pays = '" . $this->pays_id ."'"; } + if (trim($this->tel)) { $sql .= ",tel = '" . trim($this->tel) ."'"; } if (trim($this->fax)) { $sql .= ",fax = '" . trim($this->fax) ."'"; } if (trim($this->url)) { $sql .= ",url = '" . trim($this->url) ."'"; } @@ -155,7 +166,11 @@ class Societe { if (trim($this->tva_intra)) { $sql .= ",tva_intra = '" . trim($this->tva_intra) ."'"; } if (trim($this->capital)) { $sql .= ",capital = '" . trim($this->capital) ."'"; } if (trim($this->effectif_id)) { $sql .= ",fk_effectif = '" . trim($this->effectif_id) ."'"; } - if (trim($this->forme_juridique_code)) { $sql .= ",fk_forme_juridique = '" . trim($this->forme_juridique_code) ."'"; } + + if (trim($this->forme_juridique_code)) + { + $sql .= ",fk_forme_juridique = '" . trim($this->forme_juridique_code) ."'"; + } if (trim($this->client)) { $sql .= ",client = '" . $this->client ."'"; } if (trim($this->fournisseur)) { $sql .= ",fournisseur = '" . $this->fournisseur ."'"; } if ($user) { $sql .= ",fk_user_modif = '".$user->id."'"; }