diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php
index b51bca8f2ac..f1419f83e45 100644
--- a/htdocs/compta/facture/card.php
+++ b/htdocs/compta/facture/card.php
@@ -4463,6 +4463,7 @@ else if ($id > 0 || ! empty($ref))
print '
';
+ // Adds a line numbering column
if (!empty($conf->global->MAIN_VIEW_LINE_NUMBER)) {
print '| | ';
}
@@ -4486,6 +4487,7 @@ else if ($id > 0 || ! empty($ref))
print ' | ';
print "
\n";
+ // Adds a line numbering column
if (!empty($conf->global->MAIN_VIEW_LINE_NUMBER)) {
print ' | ';
}
diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php
index 475fbf2b1f0..fea6339a05f 100644
--- a/htdocs/core/class/commonobject.class.php
+++ b/htdocs/core/class/commonobject.class.php
@@ -3824,6 +3824,7 @@ abstract class CommonObject
print '';
+ // Adds a line numbering column
if (! empty($conf->global->MAIN_VIEW_LINE_NUMBER)) print '| | ';
// Description
diff --git a/htdocs/core/tpl/objectline_create.tpl.php b/htdocs/core/tpl/objectline_create.tpl.php
index f429f7216c0..23640216cd9 100644
--- a/htdocs/core/tpl/objectline_create.tpl.php
+++ b/htdocs/core/tpl/objectline_create.tpl.php
@@ -160,6 +160,7 @@ if ($nolinesbefore) {
?>
global->MAIN_VIEW_LINE_NUMBER)) {
$coldisplay=2;
?>
diff --git a/htdocs/expedition/card.php b/htdocs/expedition/card.php
index a811b79b9ca..c79a56267ba 100644
--- a/htdocs/expedition/card.php
+++ b/htdocs/expedition/card.php
@@ -2010,7 +2010,7 @@ else if ($id || $ref)
print '';
print '
';
print '';
- // #
+ // Adds a line numbering column
if (! empty($conf->global->MAIN_VIEW_LINE_NUMBER))
{
print '| | ';
@@ -2142,7 +2142,7 @@ else if ($id || $ref)
print ''; // id of order line
print '
';
- // #
+ // Adds a line numbering column
if (! empty($conf->global->MAIN_VIEW_LINE_NUMBER))
{
print '| '.($i+1).' | ';