diff --git a/htdocs/expedition/expedition.class.php b/htdocs/expedition/expedition.class.php index 7b7ed350df1..dbb4384f743 100644 --- a/htdocs/expedition/expedition.class.php +++ b/htdocs/expedition/expedition.class.php @@ -281,7 +281,7 @@ class Expedition extends CommonObject // Tester si non dejà au statut validé. Si oui, on arrete afin d'éviter // de décrémenter 2 fois le stock. - $sql = "SELECT ref FROM ".MAIN_DB_PREFIX."expedition where ref='".$this->ref."' AND fk_statut='1'"; + $sql = "SELECT ref FROM ".MAIN_DB_PREFIX."expedition where ref='".$this->ref."' AND fk_statut <> '0'"; $resql=$this->db->query($sql); if ($resql) { diff --git a/htdocs/livraison/livraison.class.php b/htdocs/livraison/livraison.class.php index 3f5f102ac7c..9057b24c3ef 100644 --- a/htdocs/livraison/livraison.class.php +++ b/htdocs/livraison/livraison.class.php @@ -299,7 +299,7 @@ class Livraison extends CommonObject // Tester si non dejà au statut validé. Si oui, on arrete afin d'éviter // de décrémenter 2 fois le stock. - $sql = "SELECT ref FROM ".MAIN_DB_PREFIX."livraison where ref='".$this->ref."' AND fk_statut='1'"; + $sql = "SELECT ref FROM ".MAIN_DB_PREFIX."livraison where ref='".$this->ref."' AND fk_statut <> '0'"; $resql=$this->db->query($sql); if ($resql) {