diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index d7bf227a304..4b65f3eedf3 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -8751,23 +8751,34 @@ function finishSimpleTable($addLineBreak = false)
print '';
print '';
- if($addLineBreak) {
+ if ($addLineBreak) {
print '
';
}
}
+/**
+ * Add a summary line to the current open table ("None", "XMoreLines" or "Total xxx")
+ *
+ * @param integer $tableColumnCount The complete count columns of the table
+ * @param integer $num The count of the rows of the table, when it is zero (0) the "$noneWord" is shown instead
+ * @param integer $nbofloop (optional) The maximum count of rows thaht the table show (when it is zero (0) no summary line will show, expect "$noneWord" when $num === 0)
+ * @param integer $total (optional) The total value thaht is shown after when the table has minimum of one entire
+ * @param string $noneWord (optional) The word that is shown when the table has no entires ($num === 0)
+ * @param boolean $extraRightColumn (optional) Add a addtional column after the summary word and total number
+ * @return void
+ */
function addSummaryTableLine($tableColumnCount, $num, $nbofloop = 0, $total = 0, $noneWord = "None", $extraRightColumn = false)
{
global $langs;
- if($num === 0) {
+ if ($num === 0) {
print '