Trad: Traduction menu fournisseurs.
This commit is contained in:
parent
4c6885c716
commit
b0cabbd482
@ -30,38 +30,63 @@
|
|||||||
require("../../main.inc.php");
|
require("../../main.inc.php");
|
||||||
|
|
||||||
|
|
||||||
function llxHeader($head = "", $title = "") {
|
function llxHeader($head = "", $title = "", $addons='') {
|
||||||
global $user, $conf, $langs;
|
global $user, $conf, $langs;
|
||||||
|
|
||||||
|
$langs->load("suppliers");
|
||||||
|
|
||||||
top_menu($head, $title);
|
top_menu($head, $title);
|
||||||
|
|
||||||
$menu = new Menu();
|
$menu = new Menu();
|
||||||
|
|
||||||
$menu->add(DOL_URL_ROOT."/fourn/index.php", $langs->trans("Suppliers"));
|
|
||||||
|
|
||||||
if ($user->societe_id == 0)
|
if (is_array($addons))
|
||||||
{
|
{
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/soc.php?action=create&type=f",$langs->trans("New"));
|
//$menu->add($url, $libelle);
|
||||||
|
|
||||||
|
$menu->add($addons[0][0], $addons[0][1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->societe->enabled) {
|
if ($conf->fournisseur->enabled)
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/fourn/contact.php",$langs->trans("Contacts"));
|
{
|
||||||
|
$menu->add(DOL_URL_ROOT."/fourn/index.php", $langs->trans("Suppliers"));
|
||||||
|
|
||||||
|
// Sécurité accés client
|
||||||
|
if ($user->societe_id == 0)
|
||||||
|
{
|
||||||
|
$menu->add_submenu(DOL_URL_ROOT."/soc.php?action=create&type=f",$langs->trans("NewSupplier"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($conf->societe->enabled)
|
||||||
|
{
|
||||||
|
$menu->add_submenu(DOL_URL_ROOT."/fourn/contact.php",$langs->trans("Contacts"));
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($conf->facture->enabled)
|
||||||
|
{
|
||||||
|
$langs->load("bills");
|
||||||
|
$menu->add(DOL_URL_ROOT."/fourn/facture/index.php", $langs->trans("Bills"));
|
||||||
|
|
||||||
|
if ($user->societe_id == 0)
|
||||||
|
{
|
||||||
|
$menu->add_submenu(DOL_URL_ROOT."/fourn/facture/fiche.php?action=create",$langs->trans("NewBill"));
|
||||||
|
}
|
||||||
|
|
||||||
|
$menu->add_submenu(DOL_URL_ROOT."/fourn/facture/paiement.php", $langs->trans("Payments"));
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($conf->commande->enabled)
|
||||||
|
{
|
||||||
|
$langs->load("orders");
|
||||||
|
$menu->add_submenu(DOL_URL_ROOT."/fourn/commande/",$langs->trans("Orders"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->facture->enabled) {
|
if ($conf->produit->enabled || $conf->service->enabled)
|
||||||
$langs->load("bills");
|
{
|
||||||
$menu->add(DOL_URL_ROOT."/fourn/facture/index.php", $langs->trans("Bills"));
|
$menu->add(DOL_URL_ROOT."/product/liste.php?type=0", $langs->trans("Products"));
|
||||||
|
|
||||||
if ($user->societe_id == 0)
|
|
||||||
{
|
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/fourn/facture/fiche.php?action=create",$langs->trans("New"));
|
|
||||||
}
|
|
||||||
|
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/fourn/facture/paiement.php", $langs->trans("Payments"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$menu->add(DOL_URL_ROOT."/product/liste.php?type=0", $langs->trans("Products"));
|
|
||||||
|
|
||||||
left_menu($menu->liste);
|
left_menu($menu->liste);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -32,6 +32,7 @@ require("../main.inc.php");
|
|||||||
function llxHeader($head = "", $title="", $addons='') {
|
function llxHeader($head = "", $title="", $addons='') {
|
||||||
global $user, $conf, $langs;
|
global $user, $conf, $langs;
|
||||||
|
|
||||||
|
$langs->load("suppliers");
|
||||||
|
|
||||||
top_menu($head, $title);
|
top_menu($head, $title);
|
||||||
|
|
||||||
@ -52,7 +53,7 @@ function llxHeader($head = "", $title="", $addons='') {
|
|||||||
// 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("New"));
|
$menu->add_submenu(DOL_URL_ROOT."/soc.php?action=create&type=f",$langs->trans("NewSupplier"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -68,7 +69,7 @@ function llxHeader($head = "", $title="", $addons='') {
|
|||||||
|
|
||||||
if ($user->societe_id == 0)
|
if ($user->societe_id == 0)
|
||||||
{
|
{
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/fourn/facture/fiche.php?action=create",$langs->trans("New"));
|
$menu->add_submenu(DOL_URL_ROOT."/fourn/facture/fiche.php?action=create",$langs->trans("NewBill"));
|
||||||
}
|
}
|
||||||
|
|
||||||
$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"));
|
||||||
@ -76,6 +77,7 @@ function llxHeader($head = "", $title="", $addons='') {
|
|||||||
|
|
||||||
if ($conf->commande->enabled)
|
if ($conf->commande->enabled)
|
||||||
{
|
{
|
||||||
|
$langs->load("orders");
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/fourn/commande/",$langs->trans("Orders"));
|
$menu->add_submenu(DOL_URL_ROOT."/fourn/commande/",$langs->trans("Orders"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,7 @@
|
|||||||
# Dolibarr language file - en_US - suppliers
|
# Dolibarr language file - en_US - suppliers
|
||||||
Suppliers=Suppliers
|
Suppliers=Suppliers
|
||||||
AddSupplier=Add a supplier
|
AddSupplier=Add a supplier
|
||||||
SupplierRemoved=Supplier removed
|
SupplierRemoved=Supplier removed
|
||||||
|
NewSupplier=Nes supplier
|
||||||
|
History=History
|
||||||
|
OrderCard=Order card
|
||||||
@ -1,2 +1,7 @@
|
|||||||
# Dolibarr language file - fr_BE - suppliers
|
# Dolibarr language file - fr_BE - suppliers
|
||||||
Suppliers=Fournisseurs
|
Suppliers=Fournisseurs
|
||||||
|
AddSupplier=Ajouter un fournisseur
|
||||||
|
SupplierRemoved=Fournisseur supprimé
|
||||||
|
NewSupplier=Nouveau fournisseur
|
||||||
|
History=Historique
|
||||||
|
OrderCard=Fiche commande
|
||||||
@ -2,6 +2,6 @@
|
|||||||
Suppliers=Fournisseurs
|
Suppliers=Fournisseurs
|
||||||
AddSupplier=Ajouter un fournisseur
|
AddSupplier=Ajouter un fournisseur
|
||||||
SupplierRemoved=Fournisseur supprimé
|
SupplierRemoved=Fournisseur supprimé
|
||||||
New=Ajouter un fournisseur
|
NewSupplier=Nouveau fournisseur
|
||||||
History=Historique
|
History=Historique
|
||||||
OrderCard=Fiche commande
|
OrderCard=Fiche commande
|
||||||
Loading…
Reference in New Issue
Block a user