diff --git a/htdocs/compta/index.php b/htdocs/compta/index.php
index d52b16fd8c0..2554d5028b9 100644
--- a/htdocs/compta/index.php
+++ b/htdocs/compta/index.php
@@ -711,7 +711,7 @@ if ($conf->facture->enabled && $conf->commande->enabled && $user->rights->comman
while ($i < $num)
{
$obj = $db->fetch_object($resql);
- $societestatic->fetch($obj->socid) ;
+
print "
";
print '| ';
@@ -734,8 +734,11 @@ if ($conf->facture->enabled && $conf->commande->enabled && $user->rights->comman
print ' | ';
- print '' ;
- print $societestatic->getNomUrl(1) ;
+ print ' | ';
+ $societestatic->id=$obj->socid;
+ $societestatic->nom=$obj->nom;
+ $societestatic->client=1;
+ print $societestatic->getNomUrl(1,'customer',44);
print ' | ';
if ($conf->global->MAIN_SHOW_HT_ON_SUMMARY) print ''.price($obj->total_ht).' | ';
print ''.price($obj->total_ttc).' | ';
@@ -809,7 +812,7 @@ if ($conf->facture->enabled && $user->rights->facture->lire)
{
$obj = $db->fetch_object($resql);
$societestatic->fetch($obj->socid) ;
-
+
print '
';
print '| ';
@@ -913,7 +916,7 @@ if ($conf->fournisseur->enabled && $user->rights->fournisseur->facture->lire)
{
$obj = $db->fetch_object($resql);
$societestatic->fetch($obj->socid) ;
-
+
print ' |
| ';
$facstatic->ref=$obj->facnumber;
$facstatic->id=$obj->rowid;
|