diff --git a/htdocs/product/categorie.php b/htdocs/product/categorie.php index b6e00a590e1..9c57bbc8026 100644 --- a/htdocs/product/categorie.php +++ b/htdocs/product/categorie.php @@ -138,7 +138,13 @@ if ($_GET["id"] || $_GET["ref"]) $head[$h][0] = DOL_URL_ROOT."/product/stats/fiche.php?id=".$product->id; $head[$h][1] = $langs->trans('Statistics'); $h++; - + // sousproduits + if($conf->global->PRODUIT_SOUSPRODUITS == 1) + { + $head[$h][0] = DOL_URL_ROOT."/product/sousproduits/fiche.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'); $h++; diff --git a/htdocs/product/document.php b/htdocs/product/document.php index 1608c5636d9..7955ea306c1 100755 --- a/htdocs/product/document.php +++ b/htdocs/product/document.php @@ -155,12 +155,13 @@ if ($product->id) $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/fiche.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'); diff --git a/htdocs/product/fournisseurs.php b/htdocs/product/fournisseurs.php index 1cfbe15f131..269e0734ea9 100644 --- a/htdocs/product/fournisseurs.php +++ b/htdocs/product/fournisseurs.php @@ -223,12 +223,13 @@ 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/fiche.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'); diff --git a/htdocs/product/photos.php b/htdocs/product/photos.php index b2730b23fcb..98940d35a0f 100644 --- a/htdocs/product/photos.php +++ b/htdocs/product/photos.php @@ -151,12 +151,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/fiche.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'); diff --git a/htdocs/product/price.php b/htdocs/product/price.php index f765e873c3b..97d7e9dd347 100644 --- a/htdocs/product/price.php +++ b/htdocs/product/price.php @@ -150,6 +150,13 @@ if ($conf->fournisseur->enabled) { $head[$h][0] = DOL_URL_ROOT."/product/stats/fiche.php?id=".$product->id; $head[$h][1] = $langs->trans("Statistics"); $h++; +// sousproduits +if($conf->global->PRODUIT_SOUSPRODUITS == 1) +{ + $head[$h][0] = DOL_URL_ROOT."/product/sousproduits/fiche.php?id=".$product->id; + $head[$h][1] = $langs->trans('AssociatedProducts'); + $h++; +} //erics: pour créer des produits composés de x 'sous' produits /* diff --git a/htdocs/product/stats/facture.php b/htdocs/product/stats/facture.php index 840c2b83cdd..49af242bbef 100644 --- a/htdocs/product/stats/facture.php +++ b/htdocs/product/stats/facture.php @@ -131,12 +131,13 @@ 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/fiche.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'); diff --git a/htdocs/product/stats/fiche.php b/htdocs/product/stats/fiche.php index ac6d8980895..d96a79a85e9 100644 --- a/htdocs/product/stats/fiche.php +++ b/htdocs/product/stats/fiche.php @@ -180,12 +180,13 @@ if ($_GET["id"] || $_GET["ref"]) $hselected=$h; $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/fiche.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'); diff --git a/htdocs/product/stock/product.php b/htdocs/product/stock/product.php index 170d5308fca..4f4787f55b3 100644 --- a/htdocs/product/stock/product.php +++ b/htdocs/product/stock/product.php @@ -162,12 +162,13 @@ 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/fiche.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');