diff --git a/htdocs/compta/index.php b/htdocs/compta/index.php
index 73bb05a9003..74b97d9c812 100644
--- a/htdocs/compta/index.php
+++ b/htdocs/compta/index.php
@@ -60,11 +60,11 @@ if ($action == 'del_bookmark')
*
*
*/
-print_titre(translate("Accueil comptabilité"));
+print_titre(translate("Espace comptabilité"));
print '
";
-
+print "";
/*
- * Propales à facturer
+ *
*/
-if ($user->comm > 0 && $conf->commercial )
+print '
';
+
+
+
/*
* Factures brouillons
*/
@@ -223,25 +202,50 @@ if ( $db->query($sql) )
*
*
*/
-print '';
+print ' | ';
-
-print ' ';
/*
* Factures impayées
*/
-$sql = "SELECT f.facnumber, f.rowid, s.nom, s.idp FROM llx_facture as f, llx_societe as s WHERE s.idp = f.fk_soc AND f.paye = 0 AND f.fk_statut > 0";
+$sql = "SELECT f.facnumber, f.rowid, s.nom, s.idp, f.total_ttc FROM llx_facture as f, llx_societe as s WHERE s.idp = f.fk_soc AND f.paye = 0 AND f.fk_statut > 0";
if ($socidp)
{
$sql .= " AND f.fk_soc = $socidp";
@@ -256,14 +260,15 @@ if ( $db->query($sql) )
{
print '';
print "";
- print '| Factures impayées | ';
+ print 'Factures impayées | ';
while ($i < $num)
{
$obj = $db->fetch_object( $i);
$var=!$var;
print '| '.$obj->facnumber.' | ';
- print ''.$obj->nom.' | ';
+ print ''.$obj->nom.' | ';
+ print ''.price($obj->total_ttc).' | ';
$i++;
}
print " ";
@@ -343,7 +348,7 @@ if ($user->societe_id == 0)
}
}
-print ' | | ';
+print '';
print '';