diff --git a/htdocs/compta/index.php b/htdocs/compta/index.php
index 15f33a00180..6c714ea9e90 100644
--- a/htdocs/compta/index.php
+++ b/htdocs/compta/index.php
@@ -105,9 +105,9 @@ if ($conf->facture->enabled)
{
print '
';
print '';
- print '| Factures brouillons |
';
+ print 'Factures brouillons ('.$num.') | ';
$var = True;
- while ($i < $num)
+ while ($i < $num && $i < 20)
{
$obj = $db->fetch_object( $i);
$var=!$var;
@@ -274,10 +274,10 @@ if ($conf->facture->enabled)
if ($num)
{
print '';
- print '| Factures clients impayées | Montant TTC | Reçu |
';
+ print '| Factures clients impayées ('.$num.') | Montant TTC | Reçu |
';
$var = True;
$total = $totalam = 0;
- while ($i < $num)
+ while ($i < $num && $i < 20)
{
$obj = $db->fetch_object( $i);
$var=!$var;