set order status to valid when shipping set to draft
This commit is contained in:
parent
baed678b6e
commit
69c46ecd86
@ -2284,6 +2284,13 @@ class Expedition extends CommonObject
|
|||||||
$result=$this->call_trigger('SHIPPING_UNVALIDATE',$user);
|
$result=$this->call_trigger('SHIPPING_UNVALIDATE',$user);
|
||||||
if ($result < 0) $error++;
|
if ($result < 0) $error++;
|
||||||
}
|
}
|
||||||
|
if($this->origin == 'commande'){
|
||||||
|
$commande = new Commande($this->db);
|
||||||
|
$commande->fetch($this->origin_id);
|
||||||
|
$commande->statut = Commande::STATUS_VALIDATED;
|
||||||
|
$commande->update();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!$error) {
|
if (!$error) {
|
||||||
$this->statut=self::STATUS_DRAFT;
|
$this->statut=self::STATUS_DRAFT;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user