From a72c1c51c062983867daf2d1ad202ab29f80a623 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 4 Dec 2006 18:21:05 +0000 Subject: [PATCH] Ajout visualisation d'alerte stock --- htdocs/product/canvas/product.livre.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/htdocs/product/canvas/product.livre.class.php b/htdocs/product/canvas/product.livre.class.php index 371527ffd38..b600377edb8 100644 --- a/htdocs/product/canvas/product.livre.class.php +++ b/htdocs/product/canvas/product.livre.class.php @@ -368,6 +368,13 @@ class ProductLivre extends Product $smarty->assign('prod_stock_dispo', ($this->stock_reel - $this->stock_in_command)); $smarty->assign('prod_stock_in_command', $this->stock_in_command); $smarty->assign('prod_stock_alert', $this->seuil_stock_alerte); + + if ($this->seuil_stock_alerte > ($this->stock_reel - $this->stock_in_command) && $this->status == 1) + { + $smarty->assign('smarty_stock_dispo_class', 'class="alerte"'); + } + + } }