From 59314d753ff42b5371e20f4a10fde67b3dc06b02 Mon Sep 17 00:00:00 2001 From: Andre Cianfarani Date: Mon, 20 Feb 2006 11:17:21 +0000 Subject: [PATCH] ajour onglet sous produits si fonctionnalite activee --- htdocs/product/fiche.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 5ac631359c7..b2c9ca9c144 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -423,7 +423,6 @@ if ($_GET["id"] || $_GET["ref"]) { $head[$h][0] = DOL_URL_ROOT."/product/categorie.php?id=".$product->id; $head[$h][1] = $langs->trans('Categories'); - $hselected = $h; $h++; } @@ -465,12 +464,14 @@ if ($_GET["id"] || $_GET["ref"]) $head[$h][1] = $langs->trans('Statistics'); $h++; - //erics: pour créer des produits composés de x 'sous' produits - /* - $head[$h][0] = DOL_URL_ROOT."/product/pack.php?id=".$product->id; - $head[$h][1] = $langs->trans('Packs'); - $h++; - */ + // sousproduits + if($conf->global->PRODUIT_SOUSPRODUITS == 1) + { + $head[$h][0] = DOL_URL_ROOT."/product/sousproduits.php?id=".$product->id; + $head[$h][1] = $langs->trans('AssociatedProducts'); + $h++; + } + $head[$h][0] = DOL_URL_ROOT."/product/stats/facture.php?id=".$product->id; $head[$h][1] = $langs->trans('Referers');