diff --git a/htdocs/fichinter/index.php b/htdocs/fichinter/index.php
index ab30bc746af..9a04bf82207 100644
--- a/htdocs/fichinter/index.php
+++ b/htdocs/fichinter/index.php
@@ -55,7 +55,7 @@ $pagenext = $page + 1;
-$sql = "SELECT s.nom,s.idp, f.ref,".$db->pdate("f.datei")." as dp, f.rowid as fichid, f.fk_statut, f.duree";
+$sql = "SELECT s.nom,s.idp, f.ref,".$db->pdate("f.datei")." as dp, f.rowid as fichid, f.fk_statut, f.note, f.duree";
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."fichinter as f ";
$sql .= " WHERE f.fk_soc = s.idp ";
@@ -78,11 +78,13 @@ if ($result)
print "
";
print_liste_field_titre($langs->trans("Ref"),"index.php","f.ref","","&socid=$socid",'width="15%"',$sortfield);
print_liste_field_titre($langs->trans("Company"),"index.php","s.nom","","&socid=$socid",'',$sortfield);
+ print '| '.$langs->trans("Description").' | ';
print_liste_field_titre($langs->trans("Date"),"index.php","f.datei","","&socid=$socid",'',$sortfield);
print ''.$langs->trans("Duration").' | ';
print ''.$langs->trans("Status").' | ';
print "
\n";
$var=True;
+ $total = 0;
while ($i < $num)
{
$objp = $db->fetch_object($result);
@@ -91,15 +93,19 @@ if ($result)
print "fichid\">".img_object($langs->trans("Show"),"task").' '.$objp->ref." | \n";
print ''.img_object($langs->trans("ShowCompany"),"company").' '.$objp->nom." | \n";
+ print ''.nl2br($objp->note).' | ';
print "".dolibarr_print_date($objp->dp)." | \n";
print ''.sprintf("%.1f",$objp->duree).' | ';
print ''.$objp->fk_statut.' | ';
print "\n";
-
+ $total += $objp->duree;
$i++;
}
-
+ print ' | '.$langs->trans("Total").': | ';
+ print "".($total?price($total):"0")." | | ";
+ print "
";
+
print "";
$db->free($result);
}