diff --git a/htdocs/admin/stock.php b/htdocs/admin/stock.php index af5e58dfc79..8dac87b1c13 100644 --- a/htdocs/admin/stock.php +++ b/htdocs/admin/stock.php @@ -28,10 +28,15 @@ require("./pre.inc.php"); $langs->load("admin"); +$langs->load("stocks"); if (!$user->admin) accessforbidden(); + +/* +* Actions +*/ if ($_POST["action"] == 'stock_userstock') { dolibarr_set_const($db, "STOCK_USERSTOCK", $_POST["stock_userstock"]); @@ -44,6 +49,7 @@ elseif ($_POST["action"] == 'stock_userstock_autocreate') Header("Location: stock.php"); exit; } + /* * Affiche page */ @@ -102,5 +108,5 @@ if ($conf->global->STOCK_USERSTOCK == 1) print ''; $db->close(); -llxFooter(); +llxFooter('$Date$ - $Revision$'); ?> diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index 0ebd03c53a3..00ce8e7869a 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -669,3 +669,6 @@ MantisTestOk=Connection to server '%s' on database '%s' with user '%s' successfu MantisTestKo1=Connection to server '%s' succeed but database '%s' could not be reached. MantisTestKo2=Connection to server '%s' with user '%s' failed. MantisErrorConnectOkButWrongDatabase=Connection succeeded but database doesn't look to be a Mantis database. +##### Stock ##### +StockSetup=Configuration module stock +UserWarehouse=Use user personal stocks \ No newline at end of file diff --git a/htdocs/langs/fr_FR/admin.lang b/htdocs/langs/fr_FR/admin.lang index 6761a780587..0bf8633035e 100644 --- a/htdocs/langs/fr_FR/admin.lang +++ b/htdocs/langs/fr_FR/admin.lang @@ -669,3 +669,6 @@ MantisTestOk=La connexion au serveur '%s' sur la base '%s' par l'utilisateur '%s MantisTestKo1=La connexion au serveur '%s' a réussi mais la base '%s' n'a pu être atteinte. MantisTestKo2=La connexion au serveur '%s' par l'utilisateur '%s' à échoué. MantisErrorConnectOkButWrongDatabase=La connexion a réussie mais la base ne semble pas etre une base Mantis. +##### Stock ##### +StockSetup=Configuration module stock +UserWarehouse=Utiliser des stocks personnels aux utilisateurs \ No newline at end of file