diff --git a/htdocs/reception/class/reception.class.php b/htdocs/reception/class/reception.class.php index d645c4c049e..d95895dd2cf 100644 --- a/htdocs/reception/class/reception.class.php +++ b/htdocs/reception/class/reception.class.php @@ -1793,6 +1793,12 @@ class Reception extends CommonObject $error++; } } + + if($this->origin == 'order_supplier'){ + $commande = new CommandeFournisseur($this->db); + $commande->fetch($this->origin_id); + $commande->setStatus($user,4); + } } else { $error++;