diff --git a/htdocs/expedition/shipment.php b/htdocs/expedition/shipment.php index 545608e62c3..2a370e5c04a 100644 --- a/htdocs/expedition/shipment.php +++ b/htdocs/expedition/shipment.php @@ -623,7 +623,9 @@ if ($id > 0 || !empty($ref)) { $i = 0; print ''; print ''; - print ''.$langs->trans("Rank").''; + if (getDolGlobalString('MAIN_VIEW_LINE_NUMBER')) { + print ''.$langs->trans("Rank").''; + } print ''.$langs->trans("Description").''; print ''.$langs->trans("QtyOrdered").''; print ''.$langs->trans("QtyShipped").''; @@ -663,7 +665,9 @@ if ($id > 0 || !empty($ref)) { print ''; // Rank - print ''.$objp->rang.''; + if (getDolGlobalString('MAIN_VIEW_LINE_NUMBER')) { + print ''.$objp->rang.''; + } // Product label if ($objp->fk_product > 0) {