forked from Wavyzz/dolibarr
fix php8 warnings
This commit is contained in:
@@ -38,7 +38,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonincoterm.class.php';
|
||||
if (isModEnabled("propal")) {
|
||||
require_once DOL_DOCUMENT_ROOT.'/comm/propal/class/propal.class.php';
|
||||
}
|
||||
if (!empty($conf->commande->enabled)) {
|
||||
if (isModEnabled('commande')) {
|
||||
require_once DOL_DOCUMENT_ROOT.'/commande/class/commande.class.php';
|
||||
}
|
||||
|
||||
@@ -849,7 +849,7 @@ class Reception extends CommonObject
|
||||
// Check batch is set
|
||||
$product = new Product($this->db);
|
||||
$product->fetch($fk_product);
|
||||
if (!empty($conf->productbatch->enabled)) {
|
||||
if (isModEnabled('productbatch')) {
|
||||
$langs->load("errors");
|
||||
if (!empty($product->status_batch) && empty($batch)) {
|
||||
$this->error = $langs->trans('ErrorProductNeedBatchNumber', $product->ref);
|
||||
|
||||
Reference in New Issue
Block a user