From e871a32f523062a16fca0135a32a5a66a608ae7d Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 11 Dec 2006 15:37:51 +0000 Subject: [PATCH] Ajout infos sur le stock --- htdocs/product/stats/fiche.php | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/htdocs/product/stats/fiche.php b/htdocs/product/stats/fiche.php index 21105f5b550..0e3f001c0d9 100644 --- a/htdocs/product/stats/fiche.php +++ b/htdocs/product/stats/fiche.php @@ -100,8 +100,30 @@ if ($_GET["id"] || $_GET["ref"]) // Statut print ''.$langs->trans("Status").''; - print $product->getLibStatut(2); + print $product->getLibStatut(2); print ''; + + // Stock + if ($product->type == 0 && $conf->stock->enabled) + { + print ''.$langs->trans("Stock").''; + if ($product->no_stock) + { + print "".$langs->trans("NoStockDefined"); + } + else + { + if ($product->stock_reel <= $product->seuil_stock_alerte) + { + print ''.$product->stock_reel.' Seuil : '.$product->seuil_stock_alerte; + } + else + { + print "".$product->stock_reel; + } + } + print ''; + } //show_stats_for_company($product,$socid); /*