Fix: Le champ adresse ne s'affichait pas sur les fiche socit et client
Fix: Le pays est mis blanc l'affichage si il vaut "-".
This commit is contained in:
parent
53d13ed12a
commit
e66076284a
@ -200,7 +200,7 @@ if ($socid > 0)
|
||||
print '<tr><td width="20%">Nom</td><td width="80%" colspan="3">';
|
||||
print $objsoc->nom;
|
||||
print '</td></tr>';
|
||||
print "<tr><td valign=\"top\">Adresse</td><td colspan=\"3\">".nl2br($objsoc->address)."<br>".$objsoc->cp." ".$objsoc->ville." ".$objsoc->pays."</td></tr>";
|
||||
print "<tr><td valign=\"top\">Adresse</td><td colspan=\"3\">".nl2br($objsoc->adresse)."<br>".$objsoc->cp." ".$objsoc->ville." ".$objsoc->pays."</td></tr>";
|
||||
print "<tr><td>Téléphone</td><td> $objsoc->tel </td><td>Fax</td><td>$objsoc->fax </td></tr>";
|
||||
print "<tr><td>Web</td><td colspan=\"3\"><a href=\"http://$objsoc->url\">$objsoc->url</a> </td></tr>";
|
||||
|
||||
|
||||
@ -286,7 +286,7 @@ else
|
||||
print '<table class="border" cellpadding="3" cellspacing="0" width="100%">';
|
||||
print '<tr><td width="20%">Nom</td><td width="80%" colspan="3">'.$soc->nom.'</td></tr>';
|
||||
|
||||
print "<tr><td valign=\"top\">Adresse</td><td colspan=\"3\">".nl2br($soc->address)."<br>".$soc->cp." ".$soc->ville." ".$soc->pays."</td></tr>";
|
||||
print "<tr><td valign=\"top\">Adresse</td><td colspan=\"3\">".nl2br($soc->adresse)."<br>".$soc->cp." ".$soc->ville." ".$soc->pays."</td></tr>";
|
||||
|
||||
print '<tr><td>Téléphone</td><td>'.dolibarr_print_phone($soc->tel).'</td>';
|
||||
print '<td>Fax</td><td>'.dolibarr_print_phone($soc->fax).'</td></tr>';
|
||||
|
||||
@ -1,7 +1,8 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2003 Brian Fraval <brian@fraval.org>
|
||||
/* Copyright (C) 2003 Brian Fraval <brian@fraval.org>
|
||||
* Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
|
||||
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user