Fix: missing statut after validation
This commit is contained in:
parent
d694a1b1e0
commit
a9bd88ccf7
@ -2135,6 +2135,7 @@ class Commande extends CommonObject
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
dol_print_error($this->db);
|
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)
|
if (! $error)
|
||||||
{
|
{
|
||||||
$this->ref = $numref;
|
$this->ref = $numref;
|
||||||
|
$this->statut = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! $error)
|
if (! $error)
|
||||||
|
|||||||
@ -51,6 +51,7 @@ class Livraison extends CommonObject
|
|||||||
var $origin_id;
|
var $origin_id;
|
||||||
var $socid;
|
var $socid;
|
||||||
var $ref_customer;
|
var $ref_customer;
|
||||||
|
var $statut;
|
||||||
|
|
||||||
var $expedition_id;
|
var $expedition_id;
|
||||||
|
|
||||||
@ -400,6 +401,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");
|
dol_syslog("livraison.class.php::valid ok");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user