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) {
|