Fix: Onglets manquant sur produits
This commit is contained in:
parent
c038049adf
commit
76b6120e04
@ -52,63 +52,67 @@ $product = new Product($db);
|
|||||||
$result = $product->fetch($_GET["id"]);
|
$result = $product->fetch($_GET["id"]);
|
||||||
|
|
||||||
|
|
||||||
$h=0;
|
$h=0;
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT."/product/fiche.php?id=".$product->id;
|
$head[$h][0] = DOL_URL_ROOT."/product/fiche.php?id=".$product->id;
|
||||||
$head[$h][1] = $langs->trans("Card");
|
$head[$h][1] = $langs->trans("Card");
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT."/product/price.php?id=".$product->id;
|
$head[$h][0] = DOL_URL_ROOT."/product/price.php?id=".$product->id;
|
||||||
$head[$h][1] = $langs->trans("Price");
|
$head[$h][1] = $langs->trans("Price");
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
if($product->type == 0)
|
if($product->type == 0)
|
||||||
{
|
{
|
||||||
if ($user->rights->barcode->lire)
|
if ($user->rights->barcode->lire)
|
||||||
{
|
|
||||||
if ($conf->barcode->enabled)
|
|
||||||
{
|
|
||||||
$head[$h][0] = DOL_URL_ROOT."/product/barcode.php?id=".$product->id;
|
|
||||||
$head[$h][1] = $langs->trans("BarCode");
|
|
||||||
$hselected=$h;
|
|
||||||
$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)
|
if ($conf->barcode->enabled)
|
||||||
{
|
{
|
||||||
$head[$h][0] = DOL_URL_ROOT."/product/stock/product.php?id=".$product->id;
|
$head[$h][0] = DOL_URL_ROOT."/product/barcode.php?id=".$product->id;
|
||||||
$head[$h][1] = $langs->trans("Stock");
|
$head[$h][1] = $langs->trans("BarCode");
|
||||||
|
$hselected=$h;
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($conf->fournisseur->enabled) {
|
|
||||||
$head[$h][0] = DOL_URL_ROOT."/product/fournisseurs.php?id=".$product->id;
|
$head[$h][0] = DOL_URL_ROOT."/product/photos.php?id=".$product->id;
|
||||||
$head[$h][1] = $langs->trans("Suppliers");
|
$head[$h][1] = $langs->trans("Photos");
|
||||||
|
$h++;
|
||||||
|
|
||||||
|
if($product->type == 0)
|
||||||
|
{
|
||||||
|
if ($conf->stock->enabled)
|
||||||
|
{
|
||||||
|
$head[$h][0] = DOL_URL_ROOT."/product/stock/product.php?id=".$product->id;
|
||||||
|
$head[$h][1] = $langs->trans("Stock");
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT."/product/stats/fiche.php?id=".$product->id;
|
if ($conf->fournisseur->enabled) {
|
||||||
$head[$h][1] = $langs->trans("Statistics");
|
$head[$h][0] = DOL_URL_ROOT."/product/fournisseurs.php?id=".$product->id;
|
||||||
$h++;
|
$head[$h][1] = $langs->trans("Suppliers");
|
||||||
|
$h++;
|
||||||
|
}
|
||||||
|
|
||||||
//erics: pour créer des produits composés de x 'sous' produits
|
$head[$h][0] = DOL_URL_ROOT."/product/stats/fiche.php?id=".$product->id;
|
||||||
$head[$h][0] = DOL_URL_ROOT."/product/pack.php?id=".$product->id;
|
$head[$h][1] = $langs->trans("Statistics");
|
||||||
$head[$h][1] = $langs->trans('Packs');
|
$h++;
|
||||||
$h++;
|
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT."/product/stats/facture.php?id=".$product->id;
|
//erics: pour créer des produits composés de x 'sous' produits
|
||||||
$head[$h][1] = $langs->trans("Bills");
|
$head[$h][0] = DOL_URL_ROOT."/product/pack.php?id=".$product->id;
|
||||||
$h++;
|
$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("Referers");
|
||||||
|
$h++;
|
||||||
|
|
||||||
|
$head[$h][0] = DOL_URL_ROOT.'/product/document.php?id='.$product->id;
|
||||||
|
$head[$h][1] = $langs->trans('Documents');
|
||||||
|
$h++;
|
||||||
|
|
||||||
dolibarr_fiche_head($head, $hselected, $langs->trans("CardProduct".$product->type).' : '.$product->ref);
|
dolibarr_fiche_head($head, $hselected, $langs->trans("CardProduct".$product->type).' : '.$product->ref);
|
||||||
|
|
||||||
|
|||||||
@ -210,18 +210,22 @@ if ($_GET["id"])
|
|||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT."/product/stats/fiche.php?id=".$product->id;
|
$head[$h][0] = DOL_URL_ROOT."/product/stats/fiche.php?id=".$product->id;
|
||||||
$head[$h][1] = $langs->trans('Statistics');
|
$head[$h][1] = $langs->trans('Statistics');
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
//erics: pour créer des produits composés de x 'sous' produits
|
//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][0] = DOL_URL_ROOT."/product/pack.php?id=".$product->id;
|
||||||
$head[$h][1] = $langs->trans('Packs');
|
$head[$h][1] = $langs->trans('Packs');
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT."/product/stats/facture.php?id=".$product->id;
|
$head[$h][0] = DOL_URL_ROOT."/product/stats/facture.php?id=".$product->id;
|
||||||
$head[$h][1] = $langs->trans('Referers');
|
$head[$h][1] = $langs->trans('Referers');
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
|
$head[$h][0] = DOL_URL_ROOT.'/product/document.php?id='.$product->id;
|
||||||
|
$head[$h][1] = $langs->trans('Documents');
|
||||||
|
$h++;
|
||||||
|
|
||||||
dolibarr_fiche_head($head, $hselected, $langs->trans("CardProduct".$product->type).' : '.$product->ref);
|
dolibarr_fiche_head($head, $hselected, $langs->trans("CardProduct".$product->type).' : '.$product->ref);
|
||||||
|
|
||||||
|
|||||||
@ -141,15 +141,19 @@ if ($_GET["id"])
|
|||||||
$head[$h][1] = $langs->trans('Statistics');
|
$head[$h][1] = $langs->trans('Statistics');
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
//erics: pour créer des produits composés de x 'sous' produits
|
//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][0] = DOL_URL_ROOT."/product/pack.php?id=".$product->id;
|
||||||
$head[$h][1] = $langs->trans('Packs');
|
$head[$h][1] = $langs->trans('Packs');
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT."/product/stats/facture.php?id=".$product->id;
|
$head[$h][0] = DOL_URL_ROOT."/product/stats/facture.php?id=".$product->id;
|
||||||
$head[$h][1] = $langs->trans('Referers');
|
$head[$h][1] = $langs->trans('Referers');
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
|
$head[$h][0] = DOL_URL_ROOT.'/product/document.php?id='.$product->id;
|
||||||
|
$head[$h][1] = $langs->trans('Documents');
|
||||||
|
$h++;
|
||||||
|
|
||||||
dolibarr_fiche_head($head, $hselected, $langs->trans("CardProduct".$product->type).' : '.$product->ref);
|
dolibarr_fiche_head($head, $hselected, $langs->trans("CardProduct".$product->type).' : '.$product->ref);
|
||||||
|
|
||||||
print($mesg);
|
print($mesg);
|
||||||
|
|||||||
@ -93,19 +93,18 @@ $head[$h][1] = $langs->trans("Price");
|
|||||||
$hselected=$h;
|
$hselected=$h;
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
if($product->type == 0)
|
if($product->type == 0)
|
||||||
{
|
{
|
||||||
if ($user->rights->barcode->lire)
|
if ($user->rights->barcode->lire)
|
||||||
{
|
{
|
||||||
if ($conf->barcode->enabled)
|
if ($conf->barcode->enabled)
|
||||||
{
|
{
|
||||||
$head[$h][0] = DOL_URL_ROOT."/product/barcode.php?id=".$product->id;
|
$head[$h][0] = DOL_URL_ROOT."/product/barcode.php?id=".$product->id;
|
||||||
$head[$h][1] = $langs->trans("BarCode");
|
$head[$h][1] = $langs->trans("BarCode");
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT."/product/photos.php?id=".$product->id;
|
$head[$h][0] = DOL_URL_ROOT."/product/photos.php?id=".$product->id;
|
||||||
$head[$h][1] = $langs->trans("Photos");
|
$head[$h][1] = $langs->trans("Photos");
|
||||||
@ -140,6 +139,10 @@ $head[$h][0] = DOL_URL_ROOT."/product/stats/facture.php?id=".$product->id;
|
|||||||
$head[$h][1] = $langs->trans("Referers");
|
$head[$h][1] = $langs->trans("Referers");
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
|
$head[$h][0] = DOL_URL_ROOT.'/product/document.php?id='.$product->id;
|
||||||
|
$head[$h][1] = $langs->trans('Documents');
|
||||||
|
$h++;
|
||||||
|
|
||||||
dolibarr_fiche_head($head, $hselected, $langs->trans("CardProduct".$product->type).' : '.$product->ref);
|
dolibarr_fiche_head($head, $hselected, $langs->trans("CardProduct".$product->type).' : '.$product->ref);
|
||||||
|
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|||||||
@ -67,71 +67,74 @@ if ($_GET["id"])
|
|||||||
|
|
||||||
if ($result > 0)
|
if ($result > 0)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* En mode visu
|
* En mode visu
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$h=0;
|
$h=0;
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT."/product/fiche.php?id=".$product->id;
|
$head[$h][0] = DOL_URL_ROOT."/product/fiche.php?id=".$product->id;
|
||||||
$head[$h][1] = $langs->trans("Card");
|
$head[$h][1] = $langs->trans("Card");
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT."/product/price.php?id=".$product->id;
|
$head[$h][0] = DOL_URL_ROOT."/product/price.php?id=".$product->id;
|
||||||
$head[$h][1] = $langs->trans("Price");
|
$head[$h][1] = $langs->trans("Price");
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
if($product->type == 0)
|
if($product->type == 0)
|
||||||
|
{
|
||||||
|
if ($user->rights->barcode->lire)
|
||||||
{
|
{
|
||||||
if ($user->rights->barcode->lire)
|
if ($conf->barcode->enabled)
|
||||||
{
|
{
|
||||||
if ($conf->barcode->enabled)
|
$head[$h][0] = DOL_URL_ROOT."/product/barcode.php?id=".$product->id;
|
||||||
{
|
$head[$h][1] = $langs->trans("BarCode");
|
||||||
$head[$h][0] = DOL_URL_ROOT."/product/barcode.php?id=".$product->id;
|
|
||||||
$head[$h][1] = $langs->trans("BarCode");
|
|
||||||
$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)
|
|
||||||
{
|
|
||||||
$head[$h][0] = DOL_URL_ROOT."/product/stock/product.php?id=".$product->id;
|
|
||||||
$head[$h][1] = $langs->trans("Stock");
|
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($conf->fournisseur->enabled)
|
|
||||||
|
$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)
|
||||||
{
|
{
|
||||||
$head[$h][0] = DOL_URL_ROOT."/product/fournisseurs.php?id=".$product->id;
|
$head[$h][0] = DOL_URL_ROOT."/product/stock/product.php?id=".$product->id;
|
||||||
$head[$h][1] = $langs->trans("Suppliers");
|
$head[$h][1] = $langs->trans("Stock");
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT."/product/stats/fiche.php?id=".$product->id;
|
if ($conf->fournisseur->enabled)
|
||||||
$head[$h][1] = $langs->trans('Statistics');
|
{
|
||||||
|
$head[$h][0] = DOL_URL_ROOT."/product/fournisseurs.php?id=".$product->id;
|
||||||
|
$head[$h][1] = $langs->trans("Suppliers");
|
||||||
$h++;
|
$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
|
//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][0] = DOL_URL_ROOT."/product/pack.php?id=".$product->id;
|
||||||
$head[$h][1] = $langs->trans('Packs');
|
$head[$h][1] = $langs->trans('Packs');
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT."/product/stats/facture.php?id=".$product->id;
|
$head[$h][0] = DOL_URL_ROOT."/product/stats/facture.php?id=".$product->id;
|
||||||
$head[$h][1] = $langs->trans('Referers');
|
$head[$h][1] = $langs->trans('Referers');
|
||||||
$hselected=$h;
|
$hselected=$h;
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
|
$head[$h][0] = DOL_URL_ROOT.'/product/document.php?id='.$product->id;
|
||||||
|
$head[$h][1] = $langs->trans('Documents');
|
||||||
|
$h++;
|
||||||
|
|
||||||
dolibarr_fiche_head($head, $hselected, $langs->trans("CardProduct".$product->type).' : '.$product->ref);
|
dolibarr_fiche_head($head, $hselected, $langs->trans("CardProduct".$product->type).' : '.$product->ref);
|
||||||
|
|
||||||
|
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|||||||
@ -171,15 +171,19 @@ if ($_GET["id"])
|
|||||||
$hselected=$h;
|
$hselected=$h;
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
//erics: pour créer des produits composés de x 'sous' produits
|
//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][0] = DOL_URL_ROOT."/product/pack.php?id=".$product->id;
|
||||||
$head[$h][1] = $langs->trans('Packs');
|
$head[$h][1] = $langs->trans('Packs');
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT."/product/stats/facture.php?id=".$product->id;
|
$head[$h][0] = DOL_URL_ROOT."/product/stats/facture.php?id=".$product->id;
|
||||||
$head[$h][1] = $langs->trans('Referers');
|
$head[$h][1] = $langs->trans('Referers');
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
|
$head[$h][0] = DOL_URL_ROOT.'/product/document.php?id='.$product->id;
|
||||||
|
$head[$h][1] = $langs->trans('Documents');
|
||||||
|
$h++;
|
||||||
|
|
||||||
dolibarr_fiche_head($head, $hselected, $langs->trans("CardProduct".$product->type).' : '.$product->ref);
|
dolibarr_fiche_head($head, $hselected, $langs->trans("CardProduct".$product->type).' : '.$product->ref);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user