diff --git a/htdocs/admin/stock.php b/htdocs/admin/stock.php
index 30e766eb9d4..2f4cac964e7 100644
--- a/htdocs/admin/stock.php
+++ b/htdocs/admin/stock.php
@@ -120,36 +120,21 @@ print ''."\n";
/*
* Formulaire parametres divers
*/
-// sousproduits activation/desactivation
+
$var=!$var;
-/*print "
";
-print '| '.$langs->trans("UserWarehouse").' | ';
+print "
";
+print '| '.$langs->trans("UserWarehouseAutoCreate").' | ';
+
print '';
-print "\n | \n
\n";
-
-if ($conf->global->STOCK_USERSTOCK == 1)
-{
- $var=!$var;
-*/
- print "";
- print '| '.$langs->trans("UserWarehouseAutoCreate").' | ';
-
- print '';
- print "';
- print " | \n";
- print "
\n";
-/*} */
+print '';
+print "\n";
+print "\n";
// Title rule for stock decrease
@@ -223,7 +208,7 @@ if ($conf->fournisseur->enabled)
print "\n\n\n";
}
-if ($conf->commande->enabled)
+if ($conf->fournisseur->enabled)
{
$var=!$var;
print "";
@@ -235,7 +220,9 @@ if ($conf->commande->enabled)
print $html->selectyesno("STOCK_CALCULATE_ON_SUPPLIER_VALIDATE_ORDER",$conf->global->STOCK_CALCULATE_ON_SUPPLIER_VALIDATE_ORDER,1);
print '';
print "\n\n
\n";
-
+}
+if ($conf->fournisseur->enabled)
+{
$var=!$var;
print "";
print '| '.$langs->trans("ReStockOnDispatchOrder").' | ';
diff --git a/htdocs/cashdesk/style.css b/htdocs/cashdesk/style.css
index e15db1dd3ab..c92937713f0 100644
--- a/htdocs/cashdesk/style.css
+++ b/htdocs/cashdesk/style.css
@@ -1,4 +1,4 @@
-/* Copyright (C) 2007-2008 Jérémie Ollivier
+/* Copyright (C) 2007-2008 Jeremie Ollivier
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -13,7 +13,10 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */ /* ------------------- Initialisations ------------------- */
+ */
+
+/* \version $Id$ */
+
body {
background: #eee;
color: #333;
@@ -42,7 +45,7 @@ p {
background: url("img/bg_conteneur_droite.png") top right repeat-y;
}
-/* ------------------- En-tête ------------------- */
+/* ------------------- En-t�te ------------------- */
.entete {
height: 15px;
margin: 0;
@@ -66,7 +69,7 @@ p {
}
.menu_bloc {
- margin-left: 20px;
+ margin-left: 12px;
}
.menu {
@@ -79,12 +82,12 @@ p {
.menu li {
float: left;
font-weight: bold;
- width: 230px;
}
.menu_choix1,.menu_choix2 {
font-size: 1.4em;
text-align: left;
+ width: 180px;
}
.menu_choix1 a,.menu_choix2 a {
@@ -92,7 +95,7 @@ p {
color: #fff;
text-decoration: none;
width: 100px;
- padding-left: 60px;
+ padding-left: 54px;
height: 48px;
background: url('img/new.png') top left no-repeat;
}
@@ -113,7 +116,7 @@ p {
font-size: 0.9em;
text-align: right;
font-style: italic;
- width: 280px;
+ width: 340px;
display: block;
color: #333;
text-decoration: none;
@@ -125,10 +128,11 @@ p {
}
-/* ------------------- Récapitulatif des articles ------------------- */
+/* ------------------- R�capitulatif des articles ------------------- */
.liste_articles {
width: 215px;
float: right;
+ margin-top: 8px;
margin-right: 20px;
border: 1px dotted #5ca64d;
padding-bottom: 10px;
@@ -269,7 +273,7 @@ p.titre {
position: absolute;
}
-/* --------------------- Listes déroulantes ------------------- */
+/* --------------------- Listes d�roulantes ------------------- */
.select_design {
width: 370px;
overflow: auto;
@@ -390,7 +394,7 @@ p.titre {
background: url('img/bg_pied.png') no-repeat bottom left;
}
-/* ------------------- Paramètres communs (messages d'erreur, informations, etc...) ------------------- */
+/* ------------------- Param�tres communs (messages d'erreur, informations, etc...) ------------------- */
.msg_err1 {
color: #c00;
}
@@ -443,7 +447,7 @@ p.titre {
padding: 0;
}
-/* Affichage de la liste des résultats */
+/* Affichage de la liste des r�sultats */
.dhtml_bloc {
margin: 0;
padding: 3px;
diff --git a/htdocs/fourn/commande/dispatch.php b/htdocs/fourn/commande/dispatch.php
index 15cee683e3f..3018187cf98 100644
--- a/htdocs/fourn/commande/dispatch.php
+++ b/htdocs/fourn/commande/dispatch.php
@@ -92,6 +92,7 @@ if ($_POST["action"] == 'dispatch' && $user->rights->fournisseur->commande->rece
llxHeader('',$langs->trans("OrderCard"),"CommandeFournisseur");
$html = new Form($db);
+$warehouse_static = new Entrepot($db);
$now=dol_now();
@@ -305,7 +306,8 @@ if ($id > 0 || ! empty($ref))
}
// List of already dispatching
- $sql = "SELECT p.ref, p.label, e.label as entrepot,";
+ $sql = "SELECT p.ref, p.label,";
+ $sql.= " e.rowid as warehouse_id, e.label as entrepot,";
$sql.= " cfd.fk_product, cfd.qty, cfd.rowid";
$sql.= " FROM ".MAIN_DB_PREFIX."product as p,";
$sql.= " ".MAIN_DB_PREFIX."commande_fournisseur_dispatch as cfd";
@@ -344,7 +346,11 @@ if ($id > 0 || ! empty($ref))
print "\n";
print ''.$objp->qty.' | ';
- print ''.$objp->entrepot.' | ';
+ print '';
+ $warehouse_static->id=$objp->warehouse_id;
+ $warehouse_static->libelle=$objp->entrepot;
+ print $warehouse_static->getNomUrl(1);
+ print ' | ';
print "
\n";
$i++;