New: Add hidden option SOCIETE_DISABLE_PROSPECTS
This commit is contained in:
parent
03064edc59
commit
c75a450a8e
@ -98,9 +98,12 @@ print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre"><td colspan="2">'.$langs->trans("Statistics").'</td></tr>';
|
||||
if ($conf->societe->enabled)
|
||||
{
|
||||
if (empty($conf->global->SOCIETE_DISABLE_PROSPECTS))
|
||||
{
|
||||
$statProducts = "<tr $bc[0]>";
|
||||
$statProducts.= '<td><a href="'.DOL_URL_ROOT.'/comm/prospect/prospects.php">'.$langs->trans("Prospects").'</a></td><td align="right">'.round($third['prospect']).'</td>';
|
||||
$statProducts.= "</tr>";
|
||||
}
|
||||
$statProducts.= "<tr $bc[1]>";
|
||||
$statProducts.= '<td><a href="'.DOL_URL_ROOT.'/comm/clients.php">'.$langs->trans("Customers").'</a></td><td align="right">'.round($third['customer']).'</td>';
|
||||
$statProducts.= "</tr>";
|
||||
@ -174,12 +177,12 @@ if ($result)
|
||||
{
|
||||
print "<a href=\"".DOL_URL_ROOT."/comm/fiche.php?socid=".$thirdparty_static->id."\">".$langs->trans("Customer")."</a>\n";
|
||||
}
|
||||
if ($thirdparty_static->client == 3) print " / ";
|
||||
if ($thirdparty_static->client==2 || $thirdparty_static->client==3)
|
||||
if ($thirdparty_static->client == 3 && empty($conf->global->SOCIETE_DISABLE_PROSPECTS)) print " / ";
|
||||
if (($thirdparty_static->client==2 || $thirdparty_static->client==3) && empty($conf->global->SOCIETE_DISABLE_PROSPECTS))
|
||||
{
|
||||
print "<a href=\"".DOL_URL_ROOT."/comm/prospect/fiche.php?socid=".$thirdparty_static->id."\">".$langs->trans("Prospect")."</a>\n";
|
||||
}
|
||||
if ($thirdparty_static->fournisseur)
|
||||
if ($conf->fournisseur->enabled && $thirdparty_static->fournisseur)
|
||||
{
|
||||
if ($thirdparty_static->client) print " / ";
|
||||
print '<a href="'.DOL_URL_ROOT.'/fourn/fiche.php?socid='.$thirdparty_static->id.'">'.$langs->trans("Supplier").'</a>';
|
||||
@ -189,9 +192,9 @@ if ($result)
|
||||
print '<td align="right">';
|
||||
print dol_print_date($thirdparty_static->datem,'day');
|
||||
print "</td>";
|
||||
// print '<td align="right" nowrap="nowrap">';
|
||||
// print $product_static->LibStatut($objp->tobuy,5,1);
|
||||
// print "</td>";
|
||||
// print '<td align="right" nowrap="nowrap">';
|
||||
// print $product_static->LibStatut($objp->tobuy,5,1);
|
||||
// print "</td>";
|
||||
print "</tr>\n";
|
||||
$i++;
|
||||
}
|
||||
|
||||
@ -325,12 +325,12 @@ if ($resql)
|
||||
{
|
||||
print "<a href=\"".DOL_URL_ROOT."/comm/fiche.php?socid=".$obj->rowid."\">".$langs->trans("Customer")."</a>\n";
|
||||
}
|
||||
if ($obj->client == 3) print " / ";
|
||||
if ($obj->client==2 || $obj->client==3)
|
||||
if ($obj->client == 3 && empty($conf->global->SOCIETE_DISABLE_PROSPECTS)) print " / ";
|
||||
if (($obj->client==2 || $obj->client==3) && empty($conf->global->SOCIETE_DISABLE_PROSPECTS))
|
||||
{
|
||||
print "<a href=\"".DOL_URL_ROOT."/comm/prospect/fiche.php?socid=".$obj->rowid."\">".$langs->trans("Prospect")."</a>\n";
|
||||
}
|
||||
if ($obj->fournisseur)
|
||||
if ($conf->fournisseur->enabled && $obj->fournisseur)
|
||||
{
|
||||
if ($obj->client) print " / ";
|
||||
print '<a href="'.DOL_URL_ROOT.'/fourn/fiche.php?socid='.$obj->rowid.'">'.$langs->trans("Supplier").'</a>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user