Fix: missing statut after validation

This commit is contained in:
Regis Houssin 2011-06-17 13:39:38 +00:00
parent d694a1b1e0
commit a9bd88ccf7
3 changed files with 11 additions and 1 deletions

View File

@ -2135,6 +2135,7 @@ class Commande extends CommonObject
else else
{ {
dol_print_error($this->db); dol_print_error($this->db);
return -1;
} }
} }

View File

@ -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)

View File

@ -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