New: Ajout pages configuration prcisions Dolibarr
This commit is contained in:
parent
facf08d676
commit
709f376106
@ -37,12 +37,21 @@ if (!$user->admin)
|
||||
|
||||
if (isset($_POST["action"]) && $_POST["action"] == 'update')
|
||||
{
|
||||
dolibarr_set_const($db, "MAIN_MAX_DECIMALS_UNIT", $_POST["MAIN_MAX_DECIMALS_UNIT"]);
|
||||
dolibarr_set_const($db, "MAIN_MAX_DECIMALS_TTC", $_POST["MAIN_MAX_DECIMALS_TTC"]);
|
||||
dolibarr_set_const($db, "MAIN_MAX_DECIMALS_SHOWN", $_POST["MAIN_MAX_DECIMALS_SHOWN"]);
|
||||
|
||||
Header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup");
|
||||
exit;
|
||||
if ($_POST["MAIN_MAX_DECIMALS_UNIT"] > 8
|
||||
|| $_POST["MAIN_MAX_DECIMALS_TTC"] > 8
|
||||
|| $_POST["MAIN_MAX_DECIMALS_SHOWN"] > 8)
|
||||
{
|
||||
$mesg='<div class="error">'.$langs->trans("ErrorDecimalLargerThanAreForbidden").'</div>';
|
||||
}
|
||||
else
|
||||
{
|
||||
dolibarr_set_const($db, "MAIN_MAX_DECIMALS_UNIT", $_POST["MAIN_MAX_DECIMALS_UNIT"]);
|
||||
dolibarr_set_const($db, "MAIN_MAX_DECIMALS_TTC", $_POST["MAIN_MAX_DECIMALS_TTC"]);
|
||||
dolibarr_set_const($db, "MAIN_MAX_DECIMALS_SHOWN", $_POST["MAIN_MAX_DECIMALS_SHOWN"]);
|
||||
|
||||
Header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -53,6 +62,7 @@ print_fiche_titre($langs->trans("LimitsSetup"),'','setup');
|
||||
print $langs->trans("LimitsDesc")."<br>\n";
|
||||
print "<br>\n";
|
||||
|
||||
if ($mesg) print $mesg.'<br>';
|
||||
|
||||
if (isset($_GET["action"]) && $_GET["action"] == 'edit')
|
||||
{
|
||||
|
||||
@ -16,6 +16,7 @@ GUISetup=Display
|
||||
SetupArea=Setup area
|
||||
SecuritySetup=Security setup
|
||||
ErrorModuleRequirePHPVersion=Error, this module requires PHP version %s or higher
|
||||
ErrorDecimalLargerThanAreForbidden=Error, precision higher than <b>%s</b> are not supported.
|
||||
DictionnarySetup=Dictionnary setup
|
||||
DisableJavascript=Disable JavaScript functions
|
||||
DisableAjax=Disable AJAX functions
|
||||
|
||||
@ -16,6 +16,7 @@ GUISetup=Affichage
|
||||
SetupArea=Espace configuration
|
||||
SecuritySetup=Configuration de la sécurité
|
||||
ErrorModuleRequirePHPVersion=Erreur, ce module requiert une version %s ou supérieure de PHP
|
||||
ErrorDecimalLargerThanAreForbidden=Erreur, les précisions supérieures à <b>%s</b> ne sont pas supportées.
|
||||
DictionnarySetup=Dictionnaires
|
||||
DisableJavascript=Désactiver les fonctions javascript
|
||||
DisableAjax=Désactiver les fonctions ajax
|
||||
|
||||
Loading…
Reference in New Issue
Block a user