From 9cc6533d1118d85f81bb1e1deb580806c5d81ad6 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 30 Aug 2018 18:57:30 +0200 Subject: [PATCH] Fix td alignement --- htdocs/fourn/commande/dispatch.php | 33 +++++++++++++++--------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/htdocs/fourn/commande/dispatch.php b/htdocs/fourn/commande/dispatch.php index 20664b6d679..f1fa3214e12 100644 --- a/htdocs/fourn/commande/dispatch.php +++ b/htdocs/fourn/commande/dispatch.php @@ -511,9 +511,18 @@ if ($id > 0 || ! empty($ref)) { print ''; print '' . $langs->trans("Description") . ''; - print ''; - print ''; - print ''; + if (! empty($conf->productbatch->enabled)) + { + print '' . $langs->trans("batch_number") . ''; + print '' . $langs->trans("EatByDate") . ''; + print '' . $langs->trans("SellByDate") . ''; + } + else + { + print ''; + print ''; + print ''; + } print '' . $langs->trans("SupplierRef") . ''; print '' . $langs->trans("QtyOrdered") . ''; print '' . $langs->trans("QtyDispatchedShort") . ''; @@ -521,16 +530,6 @@ if ($id > 0 || ! empty($ref)) { print ''; print '' . $langs->trans("Warehouse") . ''; print "\n"; - - if (! empty($conf->productbatch->enabled)) { - print ''; - print ''; - print '' . $langs->trans("batch_number") . ''; - print '' . $langs->trans("EatByDate") . ''; - print '' . $langs->trans("SellByDate") . ''; - print ' '; - print "\n"; - } } $nbfreeproduct = 0; // Nb of lins of free products/services @@ -593,7 +592,7 @@ if ($id > 0 || ! empty($ref)) { // Supplier ref print ''.$objp->sref.''; - + // Qty ordered print '' . $objp->qty . ''; @@ -638,7 +637,7 @@ if ($id > 0 || ! empty($ref)) { $dluodatesuffix = dol_mktime(0, 0, 0, GETPOST('dluo' . $suffix . 'month'), GETPOST('dluo' . $suffix . 'day'), GETPOST('dluo' . $suffix . 'year')); $form->select_date($dluodatesuffix, 'dluo' . $suffix, '', '', 1, ""); print ''; - print ' '; // Qty ordered + qty already dispatached + print ' '; // Supplier ref + Qty ordered + qty already dispatched } else { $type = 'dispatch'; print ''; @@ -650,7 +649,7 @@ if ($id > 0 || ! empty($ref)) { print ''; print ''; - print ''; + print ''; print ''; print ''; @@ -672,7 +671,7 @@ if ($id > 0 || ! empty($ref)) { print ''; print ''; - print ''; + print ''; if (! empty($conf->productbatch->enabled) && $objp->tobatch == 1) { $type = 'batch'; //print img_picto($langs->trans('AddDispatchBatchLine'), 'split.png', 'class="splitbutton" onClick="addDispatchLine(' . $i . ',\'' . $type . '\')"');