From f10634fe5551abaedc578e5295995ead85c594fe Mon Sep 17 00:00:00 2001 From: Christophe Battarel Date: Thu, 4 Jan 2024 08:51:29 +0100 Subject: [PATCH] test MAIN_VIEW_LINE_NUMBER --- htdocs/expedition/shipment.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) {