FIX Can receipt of a product that required lot after disabling stock and

lot module
This commit is contained in:
Laurent Destailleur 2020-12-08 17:51:26 +01:00
parent d1c66059cd
commit 485fe0fc62

View File

@ -240,7 +240,7 @@ if (empty($reshook))
$stockLocation = "ent1".$i."_0";
$qty = "qtyl".$i;
if ($objectsrc->lines[$i]->product_tobatch) // If product need a batch number
if (!empty($conf->productbatch->enabled) && $objectsrc->lines[$i]->product_tobatch) // If product need a batch number
{
if (GETPOSTISSET($batch))
{