diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 09885cd3e2b..8c264813ea1 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -1,6 +1,7 @@ * Copyright (C) 2004-2005 Laurent Destailleur + * Copyright (C) 2005 Eric Seigne * Copyright (C) 2005 Régis Houssin * * This program is free software; you can redistribute it and/or modify @@ -341,6 +342,11 @@ if ($_GET["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++; + $head[$h][0] = DOL_URL_ROOT."/product/stats/facture.php?id=".$product->id; $head[$h][1] = $langs->trans('Bills'); $h++; diff --git a/htdocs/product/fournisseurs.php b/htdocs/product/fournisseurs.php index 5c9b5a44637..5bb99fbd1a2 100644 --- a/htdocs/product/fournisseurs.php +++ b/htdocs/product/fournisseurs.php @@ -1,6 +1,7 @@ * Copyright (C) 2004-2005 Laurent Destailleur + * Copyright (C) 2004 Eric Seigne * Copyright (C) 2005 Regis Houssin * * This program is free software; you can redistribute it and/or modify @@ -214,10 +215,15 @@ if ($_GET["id"]) $head[$h][1] = $langs->trans('Statistics'); $h++; - $head[$h][0] = DOL_URL_ROOT."/product/stats/facture.php?id=".$product->id; - $head[$h][1] = $langs->trans('Bills'); - $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++; + $head[$h][0] = DOL_URL_ROOT."/product/stats/facture.php?id=".$product->id; + $head[$h][1] = $langs->trans('Bills'); + $h++; + dolibarr_fiche_head($head, $hselected, $langs->trans("CardProduct".$product->type).' : '.$product->ref); print ''; diff --git a/htdocs/product/stock/product.php b/htdocs/product/stock/product.php index f17060c020f..46e0aebfee3 100644 --- a/htdocs/product/stock/product.php +++ b/htdocs/product/stock/product.php @@ -33,6 +33,7 @@ require("./pre.inc.php"); $langs->load("products"); +$langs->load("bills"); $user->getrights('produit'); $mesg = ''; @@ -114,6 +115,11 @@ if ($_GET["id"]) $head[$h][1] = $langs->trans("Price"); $h++; + + $head[$h][0] = DOL_URL_ROOT."/product/photos.php?id=".$product->id; + $head[$h][1] = $langs->trans("Photos"); + $h++; + if ($product->type == 0) { if ($conf->stock->enabled) @@ -124,21 +130,25 @@ if ($_GET["id"]) $h++; } } - if ($conf->fournisseur->enabled) { $head[$h][0] = DOL_URL_ROOT."/product/fournisseurs.php?id=".$product->id; $head[$h][1] = $langs->trans("Suppliers"); $h++; } - $head[$h][0] = DOL_URL_ROOT."/product/photos.php?id=".$product->id; - $head[$h][1] = $langs->trans("Photos"); - $h++; - $head[$h][0] = DOL_URL_ROOT."/product/stats/fiche.php?id=".$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++; + + $head[$h][0] = DOL_URL_ROOT."/product/stats/facture.php?id=".$product->id; + $head[$h][1] = $langs->trans('Bills'); + $h++; + dolibarr_fiche_head($head, $hselected, $langs->trans("CardProduct".$product->type).' : '.$product->ref); print($mesg);