Ajout liens vers les fiches comm et compta
This commit is contained in:
parent
42d00300a8
commit
ee51206df7
@ -107,6 +107,9 @@ elseif ($action == 'edit')
|
|||||||
{
|
{
|
||||||
print_titre("Edition de la société");
|
print_titre("Edition de la société");
|
||||||
|
|
||||||
|
if ($socid)
|
||||||
|
{
|
||||||
|
|
||||||
$soc = new Societe($db);
|
$soc = new Societe($db);
|
||||||
$soc->id = $socid;
|
$soc->id = $socid;
|
||||||
$soc->fetch($socid);
|
$soc->fetch($socid);
|
||||||
@ -142,7 +145,7 @@ elseif ($action == 'edit')
|
|||||||
print '<tr><td align="center" colspan="2"><input type="submit" value="Mettre a jour"></td></tr>';
|
print '<tr><td align="center" colspan="2"><input type="submit" value="Mettre a jour"></td></tr>';
|
||||||
print '</table>';
|
print '</table>';
|
||||||
print '</form>';
|
print '</form>';
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
print_titre("Fiche société");
|
print_titre("Fiche société");
|
||||||
@ -151,8 +154,8 @@ elseif ($action == 'edit')
|
|||||||
$soc->id = $socid;
|
$soc->id = $socid;
|
||||||
$soc->fetch($socid);
|
$soc->fetch($socid);
|
||||||
|
|
||||||
print '<table border="1" cellpadding="3" cellspacing="0">';
|
print '<table border="1" cellpadding="3" cellspacing="0" width="100%">';
|
||||||
print '<tr><td>Nom</td><td class="valeur">'.$soc->nom.'</td></tr>';
|
print '<tr><td width="20%">Nom</td><td class="valeur">'.$soc->nom.'</td></tr>';
|
||||||
print '<tr><td valign="top">Adresse</td><td class="valeur">'.nl2br($soc->adresse).' </td></tr>';
|
print '<tr><td valign="top">Adresse</td><td class="valeur">'.nl2br($soc->adresse).' </td></tr>';
|
||||||
print '<tr><td>CP</td><td class="valeur">'.$soc->cp.' '.$soc->ville.'</td></tr>';
|
print '<tr><td>CP</td><td class="valeur">'.$soc->cp.' '.$soc->ville.'</td></tr>';
|
||||||
|
|
||||||
@ -164,7 +167,7 @@ elseif ($action == 'edit')
|
|||||||
|
|
||||||
if ($soc->client)
|
if ($soc->client)
|
||||||
{
|
{
|
||||||
print '<tr><td>Client</td><td>oui</td></tr>';
|
print '<tr><td>Client</td><td>oui <a href="'.DOL_URL_ROOT.'/comm/fiche.php3?socid='.$socid.'">Fiche</a></td></tr>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -173,7 +176,7 @@ elseif ($action == 'edit')
|
|||||||
|
|
||||||
if ($soc->fournisseur)
|
if ($soc->fournisseur)
|
||||||
{
|
{
|
||||||
print '<tr><td>Fournisseur</td><td>oui</td></tr>';
|
print '<tr><td>Fournisseur</td><td>oui <a href="'.DOL_URL_ROOT.'/compta/fiche.php3?socid='.$socid.'">Fiche</a></td></tr>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user