diff --git a/htdocs/product/stock/index.php b/htdocs/product/stock/index.php index 40251450fa4..5780d3b1e5c 100644 --- a/htdocs/product/stock/index.php +++ b/htdocs/product/stock/index.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2003-2006 Rodolphe Quiedeville * Copyright (C) 2004-2006 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify @@ -21,10 +21,10 @@ */ /** - \file htdocs/product/stock/index.php - \ingroup stock - \brief Page accueil stocks produits - \version $Revision$ + \file htdocs/product/stock/index.php + \ingroup stock + \brief Page accueil stocks produits + \version $Revision$ */ require_once("./pre.inc.php"); @@ -36,7 +36,6 @@ $langs->load("stocks"); if (!$user->rights->stock->lire) accessforbidden(); - llxHeader("","",$langs->trans("Stocks")); print_fiche_titre($langs->trans("StocksArea")); @@ -44,7 +43,6 @@ print_fiche_titre($langs->trans("StocksArea")); print ''; print ''; print "
'; - /* * Zone recherche entrepot */ @@ -57,10 +55,8 @@ print $langs->trans("Ref").':".$langs->trans("Other").':

"; - - $sql = "SELECT e.label, e.rowid, e.statut FROM ".MAIN_DB_PREFIX."entrepot as e"; -$sql .= " ORDER BY e.statut DESC "; +$sql .= " WHERE statut in (0,1) ORDER BY e.statut DESC "; $sql .= $db->plimit(15 ,0); $result = $db->query($sql) ;