From 00ff8d490a85ae36d797b7da9579710fa33a5e9a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 30 Jun 2025 15:14:09 +0200 Subject: [PATCH] Debug v22 --- .../societe/doc/doc_generic_odt.modules.php | 2 +- htdocs/societe/admin/societe.php | 26 ++----------------- 2 files changed, 3 insertions(+), 25 deletions(-) diff --git a/htdocs/core/modules/societe/doc/doc_generic_odt.modules.php b/htdocs/core/modules/societe/doc/doc_generic_odt.modules.php index 0f55fbda3d3..949c8abf977 100644 --- a/htdocs/core/modules/societe/doc/doc_generic_odt.modules.php +++ b/htdocs/core/modules/societe/doc/doc_generic_odt.modules.php @@ -95,7 +95,7 @@ class doc_generic_odt extends ModeleThirdPartyDoc */ public function info($langs) { - global $conf, $langs; + global $langs; // Load traductions files required by page $langs->loadLangs(array("companies", "errors")); diff --git a/htdocs/societe/admin/societe.php b/htdocs/societe/admin/societe.php index d36aeb1222e..51bb8c4a407 100644 --- a/htdocs/societe/admin/societe.php +++ b/htdocs/societe/admin/societe.php @@ -206,21 +206,6 @@ if ($action == "setaccountancycodecustomerinvoicemandatory") { setEventMessages($langs->trans("Error"), null, 'errors'); } } -/* This code is not needed anymore as we can use the setprofid functions instead with key = 'VAT_INTRA' -//Activate Set vat id unique -if ($action == "setvatintraunique") { - $setvatintraunique = GETPOSTINT('value'); - $res = dolibarr_set_const($db, "SOCIETE_VAT_INTRA_UNIQUE", $setvatintraunique, 'yesno', 0, '', $conf->entity); - if (!($res > 0)) { - $error++; - } - if (!$error) { - setEventMessages($langs->trans("SetupSaved"), null, 'mesgs'); - } else { - setEventMessages($langs->trans("Error"), null, 'errors'); - } -} -*/ //Activate Set ref in list if ($action == "setaddrefinlist") { @@ -627,22 +612,15 @@ foreach ($dirsociete as $dirroot) { // Activate / Disable if (in_array($name, $def)) { - print "\n"; - //if ($conf->global->COMPANY_ADDON_PDF != "$name") - //{ + print ''."\n"; print 'scandir.'&label='.urlencode($module->name).'">'; print img_picto($langs->trans("Enabled"), 'switch_on'); print ''; - //} - //else - //{ - // print img_picto($langs->trans("Enabled"),'on'); - //} print ""; } else { if (versioncompare($module->phpmin, versionphparray()) > 0) { print ''."\n"; - print img_picto(dol_escape_htmltag($langs->trans("ErrorModuleRequirePHPVersion", implode('.', $module->phpmin))), 'switch_off'); + print img_picto(dol_escape_htmltag($langs->trans("ErrorModuleRequirePHPVersion", implode('.', $module->phpmin))), 'switch_off', 'class="opacitymedium"'); print ""; } else { print ''."\n";