From 06545e005b8718e8e96cf0d0fdeb56c3630de19f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 19 Nov 2020 18:55:37 +0100 Subject: [PATCH] Use status constant --- htdocs/commande/list.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/commande/list.php b/htdocs/commande/list.php index 3d8e152c870..9186f8c39c0 100644 --- a/htdocs/commande/list.php +++ b/htdocs/commande/list.php @@ -965,8 +965,8 @@ if ($resql) if (!empty($show_shippable_command)) { // Show shippable Icon (create subloop, so may be slow) - if ($conf->stock->enabled) { - if (($obj->fk_statut > 0) && ($obj->fk_statut < 3)) { + if (! empty($conf->stock->enabled)) { + if (($obj->fk_statut > $generic_commande::STATUS_DRAFT) && ($obj->fk_statut < $generic_commande::STATUS_CLOSED)) { $numlines = count($generic_commande->lines); // Loop on each line of order for ($lig = 0; $lig < $numlines; $lig++) { if ($generic_commande->lines[$lig]->product_type == 0 && $generic_commande->lines[$lig]->fk_product > 0) // If line is a product and not a service