Fix warnings

This commit is contained in:
Laurent Destailleur 2023-08-29 21:58:28 +02:00
parent bb161a3d97
commit de6cb5f4ee

View file

@ -72,6 +72,10 @@ class BOM extends CommonObject
*/
public $picto = 'bom';
/**
* @var Product Object product of the BOM
*/
public $product;
const STATUS_DRAFT = 0;
const STATUS_VALIDATED = 1;
@ -909,7 +913,7 @@ class BOM extends CommonObject
*/
public function validate($user, $notrigger = 0)
{
global $conf, $langs;
global $conf;
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
@ -1354,7 +1358,7 @@ class BOM extends CommonObject
{
$this->initAsSpecimenCommon();
$this->ref = 'BOM-123';
$this->date = $this->date_creation;
$this->date_creation = dol_now() - 20000;
}