diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index a18aa9a8e7e..98a47d7b1f7 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -200,7 +200,7 @@ if ($socid > 0) print 'Nom'; print $objsoc->nom; print ''; - print "Adresse".nl2br($objsoc->address)."
".$objsoc->cp." ".$objsoc->ville." ".$objsoc->pays.""; + print "Adresse".nl2br($objsoc->adresse)."
".$objsoc->cp." ".$objsoc->ville." ".$objsoc->pays.""; print "Téléphone $objsoc->tel Fax$objsoc->fax "; print "Weburl\">$objsoc->url "; diff --git a/htdocs/soc.php b/htdocs/soc.php index 26930f1f580..d0203f401db 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -286,7 +286,7 @@ else print ''; print ''; - print ""; + print ""; print ''; print ''; diff --git a/htdocs/societe.class.php b/htdocs/societe.class.php index 3df3c316e90..46e3fb2b679 100644 --- a/htdocs/societe.class.php +++ b/htdocs/societe.class.php @@ -1,7 +1,8 @@ +/* Copyright (C) 2003 Brian Fraval * Copyright (C) 2002-2004 Rodolphe Quiedeville - * Copyright (C) 2004 Eric Seigne + * Copyright (C) 2004 Eric Seigne + * Copyright (C) 2004 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -164,12 +165,11 @@ class Societe { $this->departement_id = $obj->fk_departement; $this->pays_id = $obj->fk_pays; + $this->pays = $obj->fk_pays?$obj->pays:''; $this->stcomm_id = $obj->fk_stcomm; // statut commercial $this->statut_commercial = $obj->stcomm; // statut commercial - $this->pays = $obj->pays; - $this->url = $obj->url; $this->tel = $obj->tel;
Nom'.$soc->nom.'
Adresse".nl2br($soc->address)."
".$soc->cp." ".$soc->ville." ".$soc->pays."
Adresse".nl2br($soc->adresse)."
".$soc->cp." ".$soc->ville." ".$soc->pays."
Téléphone'.dolibarr_print_phone($soc->tel).'Fax'.dolibarr_print_phone($soc->fax).'