Merge pull request #8911 from fappels/develop_fix_properties_for_trigger

FIX stock movement trigger is missing some data
This commit is contained in:
Laurent Destailleur 2018-06-04 12:20:47 +02:00 committed by GitHub
commit 60ce5fb87e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,9 +119,15 @@ class MouvementStock extends CommonObject
// Set properties of movement
$this->product_id = $fk_product;
$this->entrepot_id = $entrepot_id;
$this->entrepot_id = $entrepot_id; // deprecated
$this->warehouse_id = $entrepot_id;
$this->qty = $qty;
$this->type = $type;
$this->price = $price;
$this->label = $label;
$this->inventorycode = $inventorycode;
$this->datem = $now;
$this->batch = $batch;
$mvid = 0;