Ajout de la permission "consulter tous les clients" dans le module commercial, afin

qu'un commercial puisse voir que les clients qui lui sont affects.
This commit is contained in:
Regis Houssin 2006-03-11 17:12:38 +00:00
parent 0dde8a9a8b
commit 2c6ad8afe4

View File

@ -733,11 +733,15 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente)
print '<tr><td width="50%" valign="top">';
print_titre($langs->trans("AddToMyProposals")) . '</td>';
if (!$user->rights->commercial->client->voir)
if ($user->rights->commercial->client->voir)
{
print '<td width="50%" valign="top">';
print_titre($langs->trans("AddToOtherProposals")) . '</td>';
}
else
{
print '<td width="50%" valign="top"></td>';
}
print '</tr>';
@ -787,7 +791,7 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente)
print '</td>';
if (!$user->rights->commercial->client->voir)
if ($user->rights->commercial->client->voir)
{
// Liste de "Other propals"
print '<td width="50%" valign="top">';
@ -832,11 +836,15 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente)
print '<tr><td width="50%" valign="top">';
print_titre($langs->trans("AddToMyOrders")) . '</td>';
if (!$user->rights->commercial->client->voir)
if ($user->rights->commercial->client->voir)
{
print '<td width="50%" valign="top">';
print_titre($langs->trans("AddToOtherOrders")) . '</td>';
}
else
{
print '<td width="50%" valign="top"></td>';
}
print '</tr>';
@ -888,7 +896,7 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente)
print '</td>';
if (!$user->rights->commercial->client->voir)
if ($user->rights->commercial->client->voir)
{
// Liste de "Other orders"
print '<td width="50%" valign="top">';
@ -929,11 +937,15 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente)
print '<tr><td width="50%" valign="top">';
print_titre($langs->trans("AddToMyBills"));
if (!$user->rights->commercial->client->voir)
if ($user->rights->commercial->client->voir)
{
print '</td><td width="50%" valign="top">';
print_titre($langs->trans("AddToOtherBills"));
}
else
{
print '<td width="50%" valign="top"></td>';
}
print '</td></tr>';
@ -989,7 +1001,7 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente)
print '</td>';
if (!$user->rights->commercial->client->voir)
if ($user->rights->commercial->client->voir)
{
print '<td width="50%" valign="top">';