Modif permissions dans la barre d'action
This commit is contained in:
parent
490aab2bfa
commit
38342fd8bf
@ -23,10 +23,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/fourn/fiche.php
|
\file htdocs/fourn/fiche.php
|
||||||
\ingroup fournisseur, facture
|
\ingroup fournisseur, facture
|
||||||
\brief Page de fiche fournisseur
|
\brief Page de fiche fournisseur
|
||||||
\version $Revision$
|
\version $Revision$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
@ -268,24 +268,24 @@ if ( $societe->fetch($socid) )
|
|||||||
print '</div>';
|
print '</div>';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Boutons Actions
|
*
|
||||||
|
* Barre d'actions
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
print '<div class="tabsAction">';
|
print '<div class="tabsAction">';
|
||||||
|
|
||||||
if ($conf->commande->enabled) {
|
if ($user->fournisseur->commande->creer)
|
||||||
$langs->load("orders");
|
{
|
||||||
print '<a class="tabAction" href="'.DOL_URL_ROOT.'/fourn/commande/fiche.php?action=create&socid='.$societe->id.'">'.$langs->trans("AddOrder").'</a>';
|
$langs->load("orders");
|
||||||
}
|
print '<a class="tabAction" href="'.DOL_URL_ROOT.'/fourn/commande/fiche.php?action=create&socid='.$societe->id.'">'.$langs->trans("AddOrder").'</a>';
|
||||||
|
}
|
||||||
|
|
||||||
if ($conf->facture->enabled) {
|
$langs->load("bills");
|
||||||
$langs->load("bills");
|
print '<a class="tabAction" href="'.DOL_URL_ROOT.'/fourn/facture/fiche.php?action=create&socid='.$societe->id.'">'.$langs->trans("AddBill").'</a>';
|
||||||
print '<a class="tabAction" href="'.DOL_URL_ROOT.'/fourn/facture/fiche.php?action=create&socid='.$societe->id.'">'.$langs->trans("AddBill").'</a>';
|
|
||||||
}
|
|
||||||
|
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* Liste des contacts
|
* Liste des contacts
|
||||||
@ -304,6 +304,7 @@ if ( $societe->fetch($socid) )
|
|||||||
$sql .= " FROM ".MAIN_DB_PREFIX."socpeople as p WHERE p.fk_soc = $societe->id ORDER by p.datec";
|
$sql .= " FROM ".MAIN_DB_PREFIX."socpeople as p WHERE p.fk_soc = $societe->id ORDER by p.datec";
|
||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
$i = 0 ; $num = $db->num_rows();
|
$i = 0 ; $num = $db->num_rows();
|
||||||
|
|
||||||
while ($i < $num)
|
while ($i < $num)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object();
|
$obj = $db->fetch_object();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user