From 2bad2c6b91bd35487c6d2112bb67ab27517aa937 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 3 Jan 2007 16:58:57 +0000 Subject: [PATCH] Gestion Statut --- htdocs/product/canvas/product.livre.class.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/htdocs/product/canvas/product.livre.class.php b/htdocs/product/canvas/product.livre.class.php index 602542090ef..228ddf14873 100644 --- a/htdocs/product/canvas/product.livre.class.php +++ b/htdocs/product/canvas/product.livre.class.php @@ -413,7 +413,15 @@ class ProductLivre extends Product $smarty->assign('prod_stock_alert', $this->seuil_stock_alerte); if ($this->status==1) - $smarty->assign('prod_statut', 'En vente'); + { + $smarty->assign('prod_statut', 'En vente'); + } + else + { + $smarty->assign('prod_statut', 'Hors vente'); + } + + if ($this->seuil_stock_alerte > ($this->stock_reel - $this->stock_in_command) && $this->status == 1) {