Trad: Quelques traduction sur gestion stock
This commit is contained in:
parent
0bd85806b7
commit
29c2f4af6f
@ -451,53 +451,54 @@ class MenuLeft {
|
||||
/*
|
||||
* Menu PRODUITS-SERVICES
|
||||
*/
|
||||
if ($mainmenu == 'products') {
|
||||
|
||||
if ($conf->produit->enabled)
|
||||
{
|
||||
$newmenu->add(DOL_URL_ROOT."/product/index.php?leftmenu=product&type=0", $langs->trans("Products"), 0, $user->rights->produit->lire);
|
||||
if ($user->societe_id == 0)
|
||||
{
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/product/fiche.php?leftmenu=product&action=create&type=0", $langs->trans("NewProduct"), 1, $user->rights->produit->creer);
|
||||
}
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/product/liste.php?leftmenu=product&type=0", $langs->trans("List"), 1, $user->rights->produit->lire);
|
||||
}
|
||||
|
||||
if ($conf->service->enabled)
|
||||
{
|
||||
$newmenu->add(DOL_URL_ROOT."/product/index.php?leftmenu=service&type=1", $langs->trans("Services"), 0, $user->rights->produit->lire);
|
||||
if ($user->societe_id == 0)
|
||||
{
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/product/fiche.php?leftmenu=service&action=create&type=1", $langs->trans("NewService"), 1, $user->rights->produit->creer);
|
||||
}
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/product/liste.php?leftmenu=service&type=1", $langs->trans("List"), 1, $user->rights->produit->lire);
|
||||
}
|
||||
|
||||
$newmenu->add(DOL_URL_ROOT."/product/stats/index.php?leftmenu=stats", $langs->trans("Statistics"), 0, $user->rights->produit->lire);
|
||||
if ($conf->propal->enabled)
|
||||
{
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/product/popuprop.php?leftmenu=stats", $langs->trans("Popularity"), 1, $user->rights->propale->lire);
|
||||
}
|
||||
|
||||
if ($conf->stock->enabled)
|
||||
{
|
||||
$newmenu->add(DOL_URL_ROOT."/product/stock/index.php?leftmenu=stock", $langs->trans("Stock"), 0, $user->rights->stock->lire);
|
||||
if ($leftmenu=="stock") $newmenu->add_submenu(DOL_URL_ROOT."/product/stock/fiche.php?action=create", $langs->trans("NewWarehouse"), 1, $user->rights->stock->creer);
|
||||
if ($leftmenu=="stock") $newmenu->add_submenu(DOL_URL_ROOT."/product/stock/liste.php", $langs->trans("List"), 1, $user->rights->stock->lire);
|
||||
if ($leftmenu=="stock") $newmenu->add_submenu(DOL_URL_ROOT."/product/stock/mouvement.php", $langs->trans("Movements"), 1, $user->rights->stock->mouvement->lire);
|
||||
}
|
||||
|
||||
if ($conf->categorie->enabled)
|
||||
$langs->load("categories");
|
||||
{
|
||||
$newmenu->add(DOL_URL_ROOT."/categories/index.php?leftmenu=cat", $langs->trans("Categories"), 0, $user->rights->categorie->lire);
|
||||
if ($user->societe_id == 0)
|
||||
{
|
||||
if ($leftmenu=="cat") $newmenu->add_submenu(DOL_URL_ROOT."/categories/fiche.php?action=create", $langs->trans("NewCat"), 1, $user->rights->categorie->creer);
|
||||
}
|
||||
//if ($leftmenu=="cat") $newmenu->add_submenu(DOL_URL_ROOT."/categories/liste.php", $langs->trans("List"), 1, $user->rights->categorie->lire);
|
||||
}
|
||||
}
|
||||
if ($mainmenu == 'products')
|
||||
{
|
||||
if ($conf->produit->enabled)
|
||||
{
|
||||
$newmenu->add(DOL_URL_ROOT."/product/index.php?leftmenu=product&type=0", $langs->trans("Products"), 0, $user->rights->produit->lire);
|
||||
if ($user->societe_id == 0)
|
||||
{
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/product/fiche.php?leftmenu=product&action=create&type=0", $langs->trans("NewProduct"), 1, $user->rights->produit->creer);
|
||||
}
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/product/liste.php?leftmenu=product&type=0", $langs->trans("List"), 1, $user->rights->produit->lire);
|
||||
}
|
||||
|
||||
if ($conf->service->enabled)
|
||||
{
|
||||
$newmenu->add(DOL_URL_ROOT."/product/index.php?leftmenu=service&type=1", $langs->trans("Services"), 0, $user->rights->produit->lire);
|
||||
if ($user->societe_id == 0)
|
||||
{
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/product/fiche.php?leftmenu=service&action=create&type=1", $langs->trans("NewService"), 1, $user->rights->produit->creer);
|
||||
}
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/product/liste.php?leftmenu=service&type=1", $langs->trans("List"), 1, $user->rights->produit->lire);
|
||||
}
|
||||
|
||||
$newmenu->add(DOL_URL_ROOT."/product/stats/index.php?leftmenu=stats", $langs->trans("Statistics"), 0, $user->rights->produit->lire);
|
||||
if ($conf->propal->enabled)
|
||||
{
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/product/popuprop.php?leftmenu=stats", $langs->trans("Popularity"), 1, $user->rights->propale->lire);
|
||||
}
|
||||
|
||||
if ($conf->stock->enabled)
|
||||
{
|
||||
$langs->load("stocks");
|
||||
$newmenu->add(DOL_URL_ROOT."/product/stock/index.php?leftmenu=stock", $langs->trans("Stock"), 0, $user->rights->stock->lire);
|
||||
if ($leftmenu=="stock") $newmenu->add_submenu(DOL_URL_ROOT."/product/stock/fiche.php?action=create", $langs->trans("MenuNewWarehouse"), 1, $user->rights->stock->creer);
|
||||
if ($leftmenu=="stock") $newmenu->add_submenu(DOL_URL_ROOT."/product/stock/liste.php", $langs->trans("List"), 1, $user->rights->stock->lire);
|
||||
if ($leftmenu=="stock") $newmenu->add_submenu(DOL_URL_ROOT."/product/stock/mouvement.php", $langs->trans("Movements"), 1, $user->rights->stock->mouvement->lire);
|
||||
}
|
||||
|
||||
if ($conf->categorie->enabled)
|
||||
$langs->load("categories");
|
||||
{
|
||||
$newmenu->add(DOL_URL_ROOT."/categories/index.php?leftmenu=cat", $langs->trans("Categories"), 0, $user->rights->categorie->lire);
|
||||
if ($user->societe_id == 0)
|
||||
{
|
||||
if ($leftmenu=="cat") $newmenu->add_submenu(DOL_URL_ROOT."/categories/fiche.php?action=create", $langs->trans("NewCat"), 1, $user->rights->categorie->creer);
|
||||
}
|
||||
//if ($leftmenu=="cat") $newmenu->add_submenu(DOL_URL_ROOT."/categories/liste.php", $langs->trans("List"), 1, $user->rights->categorie->lire);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@ -453,43 +453,43 @@ class MenuLeft {
|
||||
/*
|
||||
* Menu PRODUITS-SERVICES
|
||||
*/
|
||||
if ($mainmenu == 'products') {
|
||||
|
||||
if ($conf->produit->enabled)
|
||||
{
|
||||
$newmenu->add(DOL_URL_ROOT."/product/index.php?type=0", $langs->trans("Products"), 0, $user->rights->produit->lire);
|
||||
if ($user->societe_id == 0)
|
||||
{
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/product/fiche.php?action=create&type=0", $langs->trans("NewProduct"), 1, $user->rights->produit->creer);
|
||||
}
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/product/liste.php?type=0", $langs->trans("List"), 1, $user->rights->produit->lire);
|
||||
}
|
||||
|
||||
if ($conf->service->enabled)
|
||||
{
|
||||
$newmenu->add(DOL_URL_ROOT."/product/index.php?type=1", $langs->trans("Services"), 0, $user->rights->produit->lire);
|
||||
if ($user->societe_id == 0)
|
||||
{
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/product/fiche.php?action=create&type=1", $langs->trans("NewService"), 1, $user->rights->produit->creer);
|
||||
}
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/product/liste.php?type=1", $langs->trans("List"), 1, $user->rights->produit->lire);
|
||||
}
|
||||
|
||||
$newmenu->add(DOL_URL_ROOT."/product/stats/", $langs->trans("Statistics"), 0, $user->rights->produit->lire);
|
||||
if ($conf->propal->enabled)
|
||||
{
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/product/popuprop.php", $langs->trans("Popularity"), 1, $user->rights->propale->lire);
|
||||
}
|
||||
|
||||
if ($conf->stock->enabled)
|
||||
{
|
||||
// \todo mettre droits pour module stock
|
||||
$newmenu->add(DOL_URL_ROOT."/product/stock/", $langs->trans("Stock"), 0, $user->rights->stock->lire);
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/product/stock/fiche.php?action=create", $langs->trans("NewWarehouse"), 1, $user->rights->stock->creer);
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/product/stock/liste.php", $langs->trans("List"), 1, $user->rights->stock->lire);
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/product/stock/mouvement.php", $langs->trans("Movements"), 1, $user->rights->stock->mouvement->lire);
|
||||
}
|
||||
}
|
||||
if ($mainmenu == 'products')
|
||||
{
|
||||
if ($conf->produit->enabled)
|
||||
{
|
||||
$newmenu->add(DOL_URL_ROOT."/product/index.php?type=0", $langs->trans("Products"), 0, $user->rights->produit->lire);
|
||||
if ($user->societe_id == 0)
|
||||
{
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/product/fiche.php?action=create&type=0", $langs->trans("NewProduct"), 1, $user->rights->produit->creer);
|
||||
}
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/product/liste.php?type=0", $langs->trans("List"), 1, $user->rights->produit->lire);
|
||||
}
|
||||
|
||||
if ($conf->service->enabled)
|
||||
{
|
||||
$newmenu->add(DOL_URL_ROOT."/product/index.php?type=1", $langs->trans("Services"), 0, $user->rights->produit->lire);
|
||||
if ($user->societe_id == 0)
|
||||
{
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/product/fiche.php?action=create&type=1", $langs->trans("NewService"), 1, $user->rights->produit->creer);
|
||||
}
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/product/liste.php?type=1", $langs->trans("List"), 1, $user->rights->produit->lire);
|
||||
}
|
||||
|
||||
$newmenu->add(DOL_URL_ROOT."/product/stats/", $langs->trans("Statistics"), 0, $user->rights->produit->lire);
|
||||
if ($conf->propal->enabled)
|
||||
{
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/product/popuprop.php", $langs->trans("Popularity"), 1, $user->rights->propale->lire);
|
||||
}
|
||||
|
||||
if ($conf->stock->enabled)
|
||||
{
|
||||
$langs->load("stocks");
|
||||
$newmenu->add(DOL_URL_ROOT."/product/stock/", $langs->trans("Stock"), 0, $user->rights->stock->lire);
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/product/stock/fiche.php?action=create", $langs->trans("MenuNewWarehouse"), 1, $user->rights->stock->creer);
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/product/stock/liste.php", $langs->trans("List"), 1, $user->rights->stock->lire);
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/product/stock/mouvement.php", $langs->trans("Movements"), 1, $user->rights->stock->mouvement->lire);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@ -30,7 +30,6 @@ CardProduct1=Service card
|
||||
CardContract=Contract card
|
||||
Warehouse=Warehouse
|
||||
Warehouses=Warehouses
|
||||
NewWarehouse=New warehouse
|
||||
WarehouseOpened=Warehouse opened
|
||||
WarehouseClosed=Warehouse closed
|
||||
Stock=Stock
|
||||
|
||||
@ -1,7 +1,8 @@
|
||||
# Dolibarr language file - en_US - stocks
|
||||
WarehouseCard=Warehouse card
|
||||
Warehouse=Warehouse
|
||||
NewWarehouse=New warehouse
|
||||
NewWarehouse=New warehouse / Stock area
|
||||
MenuNewWarehouse=New warehouse
|
||||
WarehouseOpened=Warehouse opened
|
||||
WarehouseClosed=Warehouse closed
|
||||
Stock=Stock
|
||||
|
||||
@ -30,7 +30,6 @@ CardProduct1=Fiche service
|
||||
CardContract=Fiche contrat
|
||||
Warehouse=Entrepôt
|
||||
Warehouses=Entrepôts
|
||||
NewWarehouse=Nouvel entrepôt
|
||||
WarehouseOpened=Entrepôt ouvert
|
||||
WarehouseClosed=Entrepôt fermé
|
||||
Stock=Stock
|
||||
|
||||
@ -1,7 +1,8 @@
|
||||
# Dolibarr language file - fr_FR - stocks
|
||||
WarehouseCard=Fiche entrepôt
|
||||
Warehouse=Entrepôt
|
||||
NewWarehouse=Nouvel entrepôt
|
||||
NewWarehouse=Nouvel entrepôt ou zone de stockage
|
||||
MenuNewWarehouse=Nouvel entrepôt
|
||||
WarehouseOpened=Entrepôt ouvert
|
||||
WarehouseClosed=Entrepôt fermé
|
||||
Stock=Stock
|
||||
|
||||
@ -21,7 +21,6 @@ CardProduct0=Cart
|
||||
CardProduct1=Cartăo de Serviço
|
||||
CardContract=Cartăo de Contracto
|
||||
Warehouse=Armazém
|
||||
NewWarehouse=Novo armazém
|
||||
WarehouseOpened=Armazém aberto
|
||||
WarehouseClosed=Armazém fechado
|
||||
Stock=Stock
|
||||
|
||||
@ -32,20 +32,21 @@ require("./entrepot.class.php");
|
||||
|
||||
function llxHeader($head = "", $urlp = "", $title="")
|
||||
{
|
||||
global $langs,$conf,$user;
|
||||
|
||||
top_menu($head, $title);
|
||||
|
||||
$menu = new Menu();
|
||||
|
||||
$menu->add(DOL_URL_ROOT."/product/stock/", $langs->trans("Stock"));
|
||||
|
||||
$menu->add_submenu(DOL_URL_ROOT."/product/stock/fiche.php?action=create", $langs->trans("NewWarehouse"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/product/stock/liste.php", $langs->trans("List"));
|
||||
|
||||
$menu->add(DOL_URL_ROOT."/product/stock/mouvement.php", $langs->trans("Movements"));
|
||||
|
||||
left_menu($menu->liste);
|
||||
|
||||
global $langs,$conf,$user;
|
||||
|
||||
top_menu($head, $title);
|
||||
|
||||
$langs->load("stocks");
|
||||
|
||||
$menu = new Menu();
|
||||
|
||||
$menu->add(DOL_URL_ROOT."/product/stock/", $langs->trans("Stock"));
|
||||
|
||||
$menu->add_submenu(DOL_URL_ROOT."/product/stock/fiche.php?action=create", $langs->trans("MenuNewWarehouse"));
|
||||
$menu->add_submenu(DOL_URL_ROOT."/product/stock/liste.php", $langs->trans("List"));
|
||||
|
||||
$menu->add(DOL_URL_ROOT."/product/stock/mouvement.php", $langs->trans("Movements"));
|
||||
|
||||
left_menu($menu->liste);
|
||||
}
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user