From 07e4cab2fcc648fd53ce9e3c5178793cb385b394 Mon Sep 17 00:00:00 2001 From: atm-quentin Date: Thu, 11 Oct 2018 10:00:07 +0200 Subject: [PATCH] set back status --- htdocs/reception/class/reception.class.php | 6 ++++++ 1 file changed, 6 insertions(+) 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++;