diff --git a/htdocs/fourn/commande/list.php b/htdocs/fourn/commande/list.php
index 731c26af038..0b45f2d63a0 100644
--- a/htdocs/fourn/commande/list.php
+++ b/htdocs/fourn/commande/list.php
@@ -1150,6 +1150,28 @@ if ($resql)
print "\n";
$i++;
}
+
+ // Show total line
+ if (isset($totalarray['totalhtfield']))
+ {
+ print '
';
+ $i=0;
+ while ($i < $totalarray['nbfield'])
+ {
+ $i++;
+ if ($i == 1)
+ {
+ if ($num < $limit) print '| '.$langs->trans("Total").' | ';
+ else print ''.$langs->trans("Totalforthispage").' | ';
+ }
+ elseif ($totalarray['totalhtfield'] == $i) print ''.price($totalarray['totalht']).' | ';
+ elseif ($totalarray['totalvatfield'] == $i) print ''.price($totalarray['totalvat']).' | ';
+ elseif ($totalarray['totalttcfield'] == $i) print ''.price($totalarray['totalttc']).' | ';
+ else print ' | ';
+ }
+ print '
';
+ }
+
print "\n";
print '';
print "\n";