diff --git a/htdocs/admin/avoir.php b/htdocs/admin/avoir.php index e04dd601b0c..5662a9f7f7a 100644 --- a/htdocs/admin/avoir.php +++ b/htdocs/admin/avoir.php @@ -31,6 +31,7 @@ require("./pre.inc.php"); $langs->load("admin"); +$langs->load("companies"); $langs->load("bills"); $langs->load("other"); @@ -88,20 +89,6 @@ if ($_GET["action"] == 'setdoc') } } -if ($_GET["action"] == 'setmod') -{ - // \todo Verifier si module numerotation choisi peut etre activé - // par appel methode canBeActivated - - - - if (dolibarr_set_const($db, "AVOIR_ADDON",$_GET["value"])) - { - // la constante qui a été lue en avant du nouveau set - // on passe donc par une variable pour avoir un affichage cohérent - $conf->global->AVOIR_ADDON = $_GET["value"]; - } -} /* @@ -126,75 +113,6 @@ $h++; dolibarr_fiche_head($head, $hselected, $langs->trans("ModuleSetup")); -/* - * Module numérotation - */ - -print_titre($langs->trans("DiscountsNumberingModules")); - -print '
| '.$langs->trans("Name")." | \n"; -print ''.$langs->trans("Description")." | \n"; -print ''.$langs->trans("Example")." | \n"; -print ''.$langs->trans("Activated").' | '; -print ''.$langs->trans("Info").' | '; -print '|
| '.$module->nom." | \n"; - print "\n | ".$module->info()." | \n"; - - // Affiche example - print ''.$module->getExample().' | '; - - print ''; - if ($conf->global->FACTURE_ADDON == "$file") - { - print img_tick($langs->trans("Activated")); - } - else - { - print ''.$langs->trans("Default").''; - } - print ' | '; - - // Info - $htmltooltip=''; - $nextval=$module->getNextValue(); - if ($nextval != $langs->trans("NotAvailable")) - { - $htmltooltip=''.$langs->trans("NextValue").': '.$nextval; - } - print 'tooltip_properties($htmltooltip).'>'; - print ($htmltooltip?img_help(0):''); - print ' | '; - - print "