diff --git a/htdocs/admin/barcode.php b/htdocs/admin/barcode.php index bda82a25a59..e094a507fcb 100644 --- a/htdocs/admin/barcode.php +++ b/htdocs/admin/barcode.php @@ -50,13 +50,14 @@ else if ($_POST["action"] == 'setgenbarcodelocation') Header("Location: barcode.php"); exit; } +/* else if ($_POST["action"] == 'setproductusebarcode') { dolibarr_set_const($db, "PRODUIT_USE_BARCODE",$_POST["value"]); Header("Location: barcode.php"); exit; } - +*/ $html = new Form($db); @@ -212,6 +213,7 @@ if (!isset($_ENV['windir']) && !file_exists($_ENV['windir'])) } // Module produits +/* if ($conf->produit->enabled) { $var=!$var; @@ -226,8 +228,10 @@ if ($conf->produit->enabled) print ''; print ''; } +*/ print ''; + /* //EAN13 $var=!$var; diff --git a/htdocs/admin/produit.php b/htdocs/admin/produit.php index aedcf8c193e..90062ebbd57 100644 --- a/htdocs/admin/produit.php +++ b/htdocs/admin/produit.php @@ -277,7 +277,7 @@ print ''; print ''; // Barcode -if ($conf->barcode->enabled && $conf->global->PRODUIT_USE_BARCODE) +if ($conf->global->MAIN_MODULE_BARCODE) { $var=!$var; print "