Chargement de la class fournisseur

This commit is contained in:
Rodolphe Quiedeville 2005-04-08 15:35:08 +00:00
parent 2cc5a30153
commit 6cf08a0038

View File

@ -27,6 +27,7 @@
*/ */
require("../main.inc.php"); require("../main.inc.php");
require_once DOL_DOCUMENT_ROOT."/fournisseur.class.php";
require(DOL_DOCUMENT_ROOT."/fournisseur.facture.class.php"); require(DOL_DOCUMENT_ROOT."/fournisseur.facture.class.php");
$user->getrights('fournisseur'); $user->getrights('fournisseur');
@ -49,10 +50,10 @@ function llxHeader($head = "", $title="", $addons='') {
if ($conf->fournisseur->enabled) if ($conf->fournisseur->enabled)
{ {
$menu->add(DOL_URL_ROOT."/fourn/index.php", $langs->trans("Suppliers")); $menu->add(DOL_URL_ROOT."/fourn/index.php", $langs->trans("Suppliers"));
// Sécurité accés client // Sécurité accés client
if ($user->societe_id == 0) if ($user->societe_id == 0)
{ {
$menu->add_submenu(DOL_URL_ROOT."/soc.php?action=create&type=f",$langs->trans("NewSupplier")); $menu->add_submenu(DOL_URL_ROOT."/soc.php?action=create&type=f",$langs->trans("NewSupplier"));
} }
@ -74,18 +75,14 @@ function llxHeader($head = "", $title="", $addons='') {
$menu->add_submenu(DOL_URL_ROOT."/fourn/facture/paiement.php", $langs->trans("Payments")); $menu->add_submenu(DOL_URL_ROOT."/fourn/facture/paiement.php", $langs->trans("Payments"));
$langs->load("orders"); $langs->load("orders");
$menu->add(DOL_URL_ROOT."/fourn/commande/",$langs->trans("Orders")); $menu->add(DOL_URL_ROOT."/fourn/commande/",$langs->trans("Orders"));
if ($conf->produit->enabled || $conf->service->enabled) if ($conf->produit->enabled || $conf->service->enabled)
{ {
$menu->add(DOL_URL_ROOT."/product/liste.php?type=0", $langs->trans("Products")); $menu->add(DOL_URL_ROOT."/product/liste.php?type=0", $langs->trans("Products"));
} }
left_menu($menu->liste); left_menu($menu->liste);
} }
?> ?>