';
- if ($objp->product_type == 0)
+ if ($type == 0 || ! empty($conf->global->STOCK_SUPPORTS_SERVICES))
{
$reste_a_livrer[$objp->fk_product] = $objp->qty - $quantite_livree;
$reste_a_livrer_total += $reste_a_livrer[$objp->fk_product];
diff --git a/htdocs/lib/doleditor.class.php b/htdocs/lib/doleditor.class.php
index 5babe057756..abe739f2412 100644
--- a/htdocs/lib/doleditor.class.php
+++ b/htdocs/lib/doleditor.class.php
@@ -19,7 +19,7 @@
/**
* \file htdocs/lib/doleditor.class.php
- * \brief Classe permettant de g�rer FCKEditor
+ * \brief Class to manage a WYSIWYG editor
* \version $Id$
*/
@@ -38,13 +38,13 @@ class DolEditor
/**
\brief DolEditor
\param htmlname Nom formulaire html WYSIWIG
- \param content Contenu �dition WYSIWIG
- \param height Hauteur en pixel de la zone �dition
- \param toolbarname Nom barre de menu �diteur
+ \param content Contenu edition WYSIWIG
+ \param height Hauteur en pixel de la zone edition
+ \param toolbarname Nom barre de menu editeur
\param toolbarlocation Emplacement de la barre de menu :
- 'In' chaque fen�tre d'�dition a �a propre barre d'outils
- 'Out:nom' partage de la barre d'outils o� 'nom' est le nom du DIV qui affiche la barre
- \param toolbarstartexpanded visible ou non au d�marrage
+ 'In' chaque fenetre d'edition a la propre barre d'outils
+ 'Out:nom' partage de la barre d'outils ou 'nom' est le nom du DIV qui affiche la barre
+ \param toolbarstartexpanded visible ou non au demarrage
\param modulepart modulepart pour protection wrapper download viewimage
*/
function DolEditor($htmlname,$content,$height=200,$toolbarname='Basic',$toolbarlocation='In',$toolbarstartexpanded=false,$uselocalbrowser=true)
diff --git a/htdocs/product/stock/index.php b/htdocs/product/stock/index.php
index 2b6a5628aee..d9bef68d9c3 100644
--- a/htdocs/product/stock/index.php
+++ b/htdocs/product/stock/index.php
@@ -119,6 +119,7 @@ $sql.= " AND m.fk_entrepot = s.rowid";
$sql.= " AND s.entity = ".$conf->entity;
if (!$user->rights->produit->hidden) $sql.=' AND (p.hidden=0 OR p.fk_product_type != 0)';
if (!$user->rights->service->hidden) $sql.=' AND (p.hidden=0 OR p.fk_product_type != 1)';
+if (empty($conf->global->STOCK_SUPPORTS_SERVICES)) $sql.= " AND p.fk_product_type = 0";
$sql.= $db->order("datem","DESC");
$sql.= $db->plimit($max,0);
diff --git a/htdocs/product/stock/mouvement.php b/htdocs/product/stock/mouvement.php
index c56e54cf770..2c52f7b3f2a 100644
--- a/htdocs/product/stock/mouvement.php
+++ b/htdocs/product/stock/mouvement.php
@@ -87,6 +87,7 @@ $sql.= " AND m.fk_entrepot = s.rowid";
$sql.= " AND s.entity = ".$conf->entity;
if (!$user->rights->produit->hidden) $sql.=' AND (p.hidden=0 OR p.fk_product_type != 0)';
if (!$user->rights->service->hidden) $sql.=' AND (p.hidden=0 OR p.fk_product_type != 1)';
+if (empty($conf->global->STOCK_SUPPORTS_SERVICES)) $sql.= " AND p.fk_product_type = 0";
if ($_GET["id"])
{
$sql.= " AND s.rowid ='".$_GET["id"]."'";