Update product.class.php

This commit is contained in:
Laurent Destailleur 2020-12-07 19:02:49 +01:00 committed by GitHub
parent 7ad70c7c21
commit 669205af1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -934,7 +934,7 @@ class Product extends CommonObject
if ($this->hasbatch() && !$this->oldcopy->hasbatch()) {
//$valueforundefinedlot = 'Undefined'; // In previous version, 39 and lower
$valueforundefinedlot = '000000';
if ($conf->global->STOCK_DEFAULT_BATCH) $valueforundefinedlot = $conf->global->STOCK_DEFAULT_BATCH;
if (!empty($conf->global->STOCK_DEFAULT_BATCH)) $valueforundefinedlot = $conf->global->STOCK_DEFAULT_BATCH;
dol_syslog("Flag batch of product id=".$this->id." is set to ON, so we will create missing records into product_batch");