New: Can choose warehouse for invoice validation

This commit is contained in:
Laurent Destailleur
2011-11-09 14:31:43 +01:00
parent 2caf178882
commit 253084feb3
33 changed files with 113 additions and 90 deletions

View File

@@ -223,7 +223,7 @@ class Commande extends CommonObject
$sql.= " fk_user_valid = ".$user->id;
$sql.= " WHERE rowid = ".$this->id;
dol_syslog("Commande::valid() sql=".$sql);
dol_syslog(get_class($this)."::valid() sql=".$sql);
$resql=$this->db->query($sql);
if (! $resql)
{
@@ -246,7 +246,6 @@ class Commande extends CommonObject
{
if ($this->lines[$i]->fk_product > 0)
{
$langs->load("agenda");
$mouvP = new MouvementStock($this->db);
// We decrement stock of product (and sub-products)
$result=$mouvP->livraison($user, $this->lines[$i]->fk_product, $idwarehouse, $this->lines[$i]->qty, $this->lines[$i]->subprice, $langs->trans("OrderValidatedInDolibarr",$num));