From c348f90eaa38a7be5ccccda29382fdbb07a60720 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 13 Apr 2005 14:48:02 +0000 Subject: [PATCH] Gestion des categories --- htdocs/fourn/product/fiche.php | 42 +++++++++++++++++++++++----------- 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/htdocs/fourn/product/fiche.php b/htdocs/fourn/product/fiche.php index 30ba800a93f..234d6ae9aa6 100644 --- a/htdocs/fourn/product/fiche.php +++ b/htdocs/fourn/product/fiche.php @@ -252,20 +252,8 @@ if ($_GET["action"] == 'create' && $user->rights->produit->creer) } print ''; print ''.$langs->trans("Label").''; - print ''.$langs->trans("SellingPrice").''; - $langs->load("bills"); - print ''.$langs->trans("VATRate").''; - print $html->select_tva("tva_tx",$conf->defaulttx); - print ''; - - print ''.$langs->trans("Status").''; - print ''; @@ -344,12 +332,40 @@ else $head[$h][1] = $langs->trans('Statistics'); $h++; + //Affichage onglet Catégories + if ($conf->categorie->enabled){ + $head[$h][0] = DOL_URL_ROOT."/fourn/product/categorie.php?id=".$product->id; + $head[$h][1] = $langs->trans('Categories'); + $h++; + } + dolibarr_fiche_head($head, $hselected, $langs->trans("CardProduct".$product->type).' : '.$product->ref); print($mesg); print ''; + + if ($conf->categorie->enabled) + { + + print ''; + print ''; + print ''; + } + print ""; print ''; print '
'; + $cat = new Categorie ($db); + $way = $cat->print_primary_way($product->id," > ",'fourn/product/liste.php'); + if ($way == "") + { + print "Ce produit n'appartient à aucune catégorie"; + } + else + { + print $langs->trans("Categorie")." : "; + print $way; + } + print '
'.$langs->trans("Ref").''.$product->ref.'';