From c869f8fe5f39ff0832c1bafe2f1df2462551376c Mon Sep 17 00:00:00 2001 From: Christian Foellmann Date: Tue, 15 Sep 2020 14:17:55 +0200 Subject: [PATCH] fix for broken table on dispatch when hiding sellby/eatby dates --- htdocs/fourn/commande/dispatch.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/fourn/commande/dispatch.php b/htdocs/fourn/commande/dispatch.php index b47f355c451..7a11d22aa53 100644 --- a/htdocs/fourn/commande/dispatch.php +++ b/htdocs/fourn/commande/dispatch.php @@ -923,6 +923,9 @@ if ($id > 0 || !empty($ref)) { print ' '; // Supplier ref + Qty ordered + qty already dispatched } else { $type = 'dispatch'; + $colspan = 7; + $colspan = (!empty($conf->global->PRODUCT_DISABLE_EATBY)) ? --$colspan : $colspan; + $colspan = (!empty($conf->global->PRODUCT_DISABLE_SELLBY)) ? --$colspan : $colspan; print ''; print ''; // Qty to dispatch print ''; @@ -949,7 +952,7 @@ if ($id > 0 || !empty($ref)) { print ''; print ''; - print ''; + print ''; print ''; print ''; @@ -1086,7 +1089,7 @@ if ($id > 0 || !empty($ref)) { var fk_default_warehouse = $("option:selected", this).val(); $("select[name^=entrepot_]").val(fk_default_warehouse).change(); }); - + jQuery("#autoreset").click(function() {'; $i = 0; while ($i < $nbproduct) {