Fix: missing statut after validation
This commit is contained in:
parent
d694a1b1e0
commit
a9bd88ccf7
@ -2135,6 +2135,7 @@ class Commande extends CommonObject
|
||||
else
|
||||
{
|
||||
dol_print_error($this->db);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -539,10 +539,11 @@ class Expedition extends CommonObject
|
||||
}
|
||||
}
|
||||
|
||||
// Set new ref
|
||||
// Set new ref and current status
|
||||
if (! $error)
|
||||
{
|
||||
$this->ref = $numref;
|
||||
$this->statut = 1;
|
||||
}
|
||||
|
||||
if (! $error)
|
||||
|
||||
@ -51,6 +51,7 @@ class Livraison extends CommonObject
|
||||
var $origin_id;
|
||||
var $socid;
|
||||
var $ref_customer;
|
||||
var $statut;
|
||||
|
||||
var $expedition_id;
|
||||
|
||||
@ -399,6 +400,13 @@ class Livraison extends CommonObject
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Set new ref and current status
|
||||
if (! $error)
|
||||
{
|
||||
$this->ref = $numref;
|
||||
$this->statut = 1;
|
||||
}
|
||||
|
||||
dol_syslog("livraison.class.php::valid ok");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user