diff --git a/htdocs/compta/index.php b/htdocs/compta/index.php
index 2e22cc37714..d52b16fd8c0 100644
--- a/htdocs/compta/index.php
+++ b/htdocs/compta/index.php
@@ -707,9 +707,11 @@ if ($conf->facture->enabled && $conf->commande->enabled && $user->rights->comman
print '
| ';
print '';
$tot_ht=$tot_ttc=$tot_tobill=0;
+ $societestatic = new Societe($db) ;
while ($i < $num)
{
$obj = $db->fetch_object($resql);
+ $societestatic->fetch($obj->socid) ;
print "";
print '| ';
@@ -732,8 +734,9 @@ if ($conf->facture->enabled && $conf->commande->enabled && $user->rights->comman
print ' | ';
- print ''.img_object($langs->trans("ShowCompany"),"company").' ';
- print ''.dol_trunc($obj->nom,44).' | ';
+ print '' ;
+ print $societestatic->getNomUrl(1) ;
+ print ' | ';
if ($conf->global->MAIN_SHOW_HT_ON_SUMMARY) print ''.price($obj->total_ht).' | ';
print ''.price($obj->total_ttc).' | ';
print ''.price($obj->total_ttc-$obj->tot_fttc).' | ';
@@ -800,10 +803,13 @@ if ($conf->facture->enabled && $user->rights->facture->lire)
print '
';
if ($num)
{
+ $societestatic = new Societe($db) ;
$total_ttc = $totalam = $total = 0;
while ($i < $num && $i < $conf->liste_limit)
{
$obj = $db->fetch_object($resql);
+ $societestatic->fetch($obj->socid) ;
+
print '';
print '| ';
@@ -826,7 +832,9 @@ if ($conf->facture->enabled && $user->rights->facture->lire)
print ' |
';
print '';
- print ''.img_object($langs->trans("ShowCustomer"),"company").' '.dol_trunc($obj->nom,44).' | ';
+ print '' ;
+ print $societestatic->getNomUrl(1) ;
+ print ' | ';
if ($conf->global->MAIN_SHOW_HT_ON_SUMMARY) print ''.price($obj->total).' | ';
print ''.price($obj->total_ttc).' | ';
print ''.price($obj->am).' | ';
@@ -896,6 +904,7 @@ if ($conf->fournisseur->enabled && $user->rights->fournisseur->facture->lire)
print ''.$langs->trans("Paid").' | ';
print ' | ';
print "\n";
+ $societestatic = new Societe($db) ;
if ($num)
{
$i = 0;
@@ -903,12 +912,14 @@ if ($conf->fournisseur->enabled && $user->rights->fournisseur->facture->lire)
while ($i < $num)
{
$obj = $db->fetch_object($resql);
+ $societestatic->fetch($obj->socid) ;
+
print '| ';
$facstatic->ref=$obj->facnumber;
$facstatic->id=$obj->rowid;
print $facstatic->getNomUrl(1,'');
print ' | ';
- print ''.img_object($langs->trans("ShowSupplier"),"company").' '.dol_trunc($obj->nom,44).' | ';
+ print ''.$societestatic->getNomUrl(1, 'supplier').' | ';
if ($conf->global->MAIN_SHOW_HT_ON_SUMMARY) print ''.price($obj->total_ht).' | ';
print ''.price($obj->total_ttc).' | ';
print ''.price($obj->am).' | ';