diff --git a/htdocs/product/stock/index.php b/htdocs/product/stock/index.php index 82b7021e5c1..01df43c901f 100644 --- a/htdocs/product/stock/index.php +++ b/htdocs/product/stock/index.php @@ -33,11 +33,14 @@ print_titre("Stocks"); print '
| '; -$sql = "SELECT e.label, e.rowid FROM llx_entrepot as e"; -$sql .= " ORDER BY e.label DESC "; +$sql = "SELECT e.label, e.rowid, e.statut FROM llx_entrepot as e"; +$sql .= " ORDER BY e.statut DESC "; $sql .= $db->plimit(15 ,0); $result = $db->query($sql) ; +$statuts[0] = "Fermé"; +$statuts[1] = "Ouvert"; + if ($result) { $num = $db->num_rows(); @@ -55,8 +58,9 @@ if ($result) { $objp = $db->fetch_object( $i); $var=!$var; - print " | |
| rowid\">$objp->label | \n"; + print "|
| rowid\">$objp->label | \n"; + print ''.$statuts[$objp->statut].' | '; print "