diff --git a/htdocs/commande/list.php b/htdocs/commande/list.php index a0053f982de..3c4cafd8a95 100644 --- a/htdocs/commande/list.php +++ b/htdocs/commande/list.php @@ -513,12 +513,11 @@ if ($search_status <> '') { //$sql.= ' AND c.facture = 0'; // invoice not created $sql .= ' AND ((c.fk_statut IN (1,2)) OR (c.fk_statut = 3 AND c.facture = 0))'; // validated, in process or closed but not billed } + if ($search_status == -4) // "To validate and in progress" { - $sql .= ' AND (c.fk_statut IN (1,2))'; // validated, in process } - } if ($search_datecloture_start) {