Fix bug productlot created without entity

This commit is contained in:
All-3kcis 2018-04-12 17:13:42 +02:00
parent f1d1fdf951
commit c35b454455

View File

@ -249,6 +249,7 @@ class MouvementStock extends CommonObject
else // If not found, we add record
{
$productlot = new Productlot($this->db);
$productlot->entity = $conf->entity;
$productlot->fk_product = $fk_product;
$productlot->batch = $batch;
// If we are here = first time we manage this batch, so we used dates provided by users to create lot