Add hidden option to disable some features
This commit is contained in:
parent
f36b26c6b7
commit
1859c545cd
@ -146,15 +146,21 @@ function societe_prepare_head2($object)
|
|||||||
$head[$h][2] = 'company';
|
$head[$h][2] = 'company';
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
|
if (empty($conf->global->SOCIETE_DISABLE_BANKACCOUNT))
|
||||||
|
{
|
||||||
$head[$h][0] = DOL_URL_ROOT .'/societe/rib.php?socid='.$object->id;
|
$head[$h][0] = DOL_URL_ROOT .'/societe/rib.php?socid='.$object->id;
|
||||||
$head[$h][1] = $langs->trans("BankAccount")." $account->number";
|
$head[$h][1] = $langs->trans("BankAccount")." $account->number";
|
||||||
$head[$h][2] = 'rib';
|
$head[$h][2] = 'rib';
|
||||||
$h++;
|
$h++;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (empty($conf->global->SOCIETE_DISABLE_PARENTCOMPANY))
|
||||||
|
{
|
||||||
$head[$h][0] = 'lien.php?socid='.$object->id;
|
$head[$h][0] = 'lien.php?socid='.$object->id;
|
||||||
$head[$h][1] = $langs->trans("ParentCompany");
|
$head[$h][1] = $langs->trans("ParentCompany");
|
||||||
$head[$h][2] = 'links';
|
$head[$h][2] = 'links';
|
||||||
$h++;
|
$h++;
|
||||||
|
}
|
||||||
|
|
||||||
$head[$h][0] = 'commerciaux.php?socid='.$object->id;
|
$head[$h][0] = 'commerciaux.php?socid='.$object->id;
|
||||||
$head[$h][1] = $langs->trans("SalesRepresentative");
|
$head[$h][1] = $langs->trans("SalesRepresentative");
|
||||||
|
|||||||
@ -1606,6 +1606,8 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Ban
|
// Ban
|
||||||
|
if (empty($conf->global->SOCIETE_DISABLE_BANKACCOUNT))
|
||||||
|
{
|
||||||
print '<tr><td>';
|
print '<tr><td>';
|
||||||
print '<table width="100%" class="nobordernopadding"><tr><td>';
|
print '<table width="100%" class="nobordernopadding"><tr><td>';
|
||||||
print $langs->trans('RIB');
|
print $langs->trans('RIB');
|
||||||
@ -1619,8 +1621,11 @@ else
|
|||||||
print '<td colspan="3">';
|
print '<td colspan="3">';
|
||||||
print $soc->display_rib();
|
print $soc->display_rib();
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
// Parent company
|
// Parent company
|
||||||
|
if (empty($conf->global->SOCIETE_DISABLE_PARENTCOMPANY))
|
||||||
|
{
|
||||||
print '<tr><td>';
|
print '<tr><td>';
|
||||||
print '<table width="100%" class="nobordernopadding"><tr><td>';
|
print '<table width="100%" class="nobordernopadding"><tr><td>';
|
||||||
print $langs->trans('ParentCompany');
|
print $langs->trans('ParentCompany');
|
||||||
@ -1643,6 +1648,7 @@ else
|
|||||||
print $langs->trans("NoParentCompany");
|
print $langs->trans("NoParentCompany");
|
||||||
}
|
}
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
// Commercial
|
// Commercial
|
||||||
print '<tr><td>';
|
print '<tr><td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user