gestion des packs de produits
This commit is contained in:
parent
3e4015131e
commit
241addc03e
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
|
* Copyright (C) 2005 Eric Seigne <eric.seigne@ryxeo.com>
|
||||||
* Copyright (C) 2005 Régis Houssin <regis.houssin@cap-networks.com>
|
* Copyright (C) 2005 Régis Houssin <regis.houssin@cap-networks.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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');
|
$head[$h][1] = $langs->trans('Statistics');
|
||||||
$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++;
|
||||||
|
|
||||||
$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('Bills');
|
$head[$h][1] = $langs->trans('Bills');
|
||||||
$h++;
|
$h++;
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
|
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
|
||||||
* Copyright (C) 2005 Regis Houssin <regis.houssin@cap-networks.com>
|
* Copyright (C) 2005 Regis Houssin <regis.houssin@cap-networks.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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');
|
$head[$h][1] = $langs->trans('Statistics');
|
||||||
$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('Bills');
|
||||||
|
$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%">';
|
||||||
|
|||||||
@ -33,6 +33,7 @@
|
|||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
|
|
||||||
$langs->load("products");
|
$langs->load("products");
|
||||||
|
$langs->load("bills");
|
||||||
|
|
||||||
$user->getrights('produit');
|
$user->getrights('produit');
|
||||||
$mesg = '';
|
$mesg = '';
|
||||||
@ -114,6 +115,11 @@ if ($_GET["id"])
|
|||||||
$head[$h][1] = $langs->trans("Price");
|
$head[$h][1] = $langs->trans("Price");
|
||||||
$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 ($product->type == 0)
|
||||||
{
|
{
|
||||||
if ($conf->stock->enabled)
|
if ($conf->stock->enabled)
|
||||||
@ -124,21 +130,25 @@ if ($_GET["id"])
|
|||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->fournisseur->enabled) {
|
if ($conf->fournisseur->enabled) {
|
||||||
$head[$h][0] = DOL_URL_ROOT."/product/fournisseurs.php?id=".$product->id;
|
$head[$h][0] = DOL_URL_ROOT."/product/fournisseurs.php?id=".$product->id;
|
||||||
$head[$h][1] = $langs->trans("Suppliers");
|
$head[$h][1] = $langs->trans("Suppliers");
|
||||||
$h++;
|
$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][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
|
||||||
|
$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);
|
dolibarr_fiche_head($head, $hselected, $langs->trans("CardProduct".$product->type).' : '.$product->ref);
|
||||||
|
|
||||||
print($mesg);
|
print($mesg);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user