diff --git a/htdocs/langs/en_US/stocks.lang b/htdocs/langs/en_US/stocks.lang index a6290718ccb..6c97c9732fd 100644 --- a/htdocs/langs/en_US/stocks.lang +++ b/htdocs/langs/en_US/stocks.lang @@ -23,6 +23,7 @@ LastMovements=Last movements Units=Units StockCorrection=Stock correction StockMovement=Transfer +StockMovements=Stock transferts NumberOfUnit=Number of units TotalStock=Total in stock StockTooLow=Stock too low \ No newline at end of file diff --git a/htdocs/langs/fr_FR/stocks.lang b/htdocs/langs/fr_FR/stocks.lang index 66bb8a9ceb5..d1a4d51be45 100644 --- a/htdocs/langs/fr_FR/stocks.lang +++ b/htdocs/langs/fr_FR/stocks.lang @@ -23,6 +23,7 @@ LastMovements=Derniers mouvements Units=Unités StockCorrection=Correction stock StockMovement=Transfert +StockMovements=Mouvements de stock NumberOfUnit=Nombre de pièces TotalStock=Total en stock StockTooLow=Stock insuffisant \ No newline at end of file diff --git a/htdocs/product/stock/fiche.php b/htdocs/product/stock/fiche.php index fd97d92dae3..5ee857f3fb2 100644 --- a/htdocs/product/stock/fiche.php +++ b/htdocs/product/stock/fiche.php @@ -113,13 +113,6 @@ if ($_POST["action"] == 'update' && $_POST["cancel"] <> $langs->trans("Cancel")) } } - - -llxHeader("","",$langs->trans("WarehouseCard")); - -$form=new Form($db); - - if ($_POST["cancel"] == $langs->trans("Cancel")) { $_GET["action"] = ''; @@ -127,11 +120,16 @@ if ($_POST["cancel"] == $langs->trans("Cancel")) } + /* * Affichage fiche en mode création * */ +llxHeader("","",$langs->trans("WarehouseCard")); + +$form=new Form($db); + if ($_GET["action"] == 'create') { print "
\n"; @@ -139,7 +137,8 @@ if ($_GET["action"] == 'create') print ''."\n"; print_titre($langs->trans("NewWarehouse")); - if ($mesg) { + if ($mesg) + { print $mesg; } @@ -156,7 +155,7 @@ if ($_GET["action"] == 'create') { // Editeur wysiwyg require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); - $doleditor=new DolEditor('desc',$entrepot->description,200,'dolibarr_notes','In',false); + $doleditor=new DolEditor('desc',$entrepot->description,180,'dolibarr_notes','In',false); $doleditor->Create(); } else @@ -176,7 +175,7 @@ if ($_GET["action"] == 'create') $form->select_pays($entrepot->pays_id?$entrepot->pays_id:$mysoc->pays_code, 'pays_id'); print ''; - print ''.$langs->trans("Status").''; + print ''.$langs->trans("Status").''; print '