diff --git a/htdocs/fourn/commande/dispatch.php b/htdocs/fourn/commande/dispatch.php
index 48599a5bbf2..17a7443aa9f 100644
--- a/htdocs/fourn/commande/dispatch.php
+++ b/htdocs/fourn/commande/dispatch.php
@@ -883,8 +883,16 @@ if ($id > 0 || ! empty($ref)) {
print '
| ';
print '' . $langs->trans("Warehouse") . ' | ';
print '' . $langs->trans("Comment") . ' | ';
- if (! empty($conf->global->SUPPLIER_ORDER_USE_DISPATCH_STATUS) || !empty($conf->reception->enabled))
+
+ // Status
+ if (! empty($conf->global->SUPPLIER_ORDER_USE_DISPATCH_STATUS) && empty($reception->rowid)) {
print '' . $langs->trans("Status") . ' | ';
+ }
+ elseif(!empty($conf->reception->enabled)) {
+ print ' | ';
+ }
+
+ print ' | ';
print "\n";
@@ -969,17 +977,15 @@ if ($id > 0 || ! empty($ref)) {
}
}
print '';
- }elseif(!empty($conf->reception->enabled)){
+ } elseif(!empty($conf->reception->enabled)) {
print '';
if(!empty($reception->id)){
print $reception->getLibStatut(5);
}
+ print ' | ';
}
- print '';
- print '';
- print ' | ';
-
+ print ' | ';
print "\n";