From 33d2be8924050d2a5f9f3c57e059bbc95360a4f2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 19 Aug 2006 02:30:41 +0000 Subject: [PATCH] =?UTF-8?q?Ajoute=20onglet=20mouvement=20de=20stock=20qui?= =?UTF-8?q?=20concerne=20un=20entrepot=20donn=E9=20sur=20fiche=20entrepot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/langs/en_US/stocks.lang | 1 + htdocs/langs/fr_FR/stocks.lang | 1 + htdocs/product/stock/fiche.php | 33 +++---- htdocs/product/stock/info.php | 7 +- htdocs/product/stock/mouvement.php | 138 +++++++++++++++++++---------- 5 files changed, 118 insertions(+), 62 deletions(-) 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 '