Better management of hidden option HOLIDAY_HIDE_BALANCE
This commit is contained in:
parent
eb03fb7540
commit
e0164884ee
@ -831,6 +831,10 @@ if (empty($id) || $action == 'add' || $action == 'request' || $action == 'create
|
|||||||
|
|
||||||
dol_fiche_end();
|
dol_fiche_end();
|
||||||
}
|
}
|
||||||
|
elseif(! is_numeric($conf->global->HOLIDAY_HIDE_BALANCE))
|
||||||
|
{
|
||||||
|
print $langs->trans($conf->global->HOLIDAY_HIDE_BALANCE).'<br>';
|
||||||
|
}
|
||||||
|
|
||||||
dol_fiche_head();
|
dol_fiche_head();
|
||||||
|
|
||||||
|
|||||||
@ -129,6 +129,8 @@ if (! empty($conf->global->MAIN_SEARCH_FORM_ON_HOME_AREAS)) // This is usele
|
|||||||
|
|
||||||
|
|
||||||
if (! empty($conf->holiday->enabled))
|
if (! empty($conf->holiday->enabled))
|
||||||
|
{
|
||||||
|
if (empty($conf->global->HOLIDAY_HIDE_BALANCE))
|
||||||
{
|
{
|
||||||
$user_id = $user->id;
|
$user_id = $user->id;
|
||||||
|
|
||||||
@ -152,6 +154,11 @@ if (! empty($conf->holiday->enabled))
|
|||||||
print '</tr>';
|
print '</tr>';
|
||||||
print '</table><br>';
|
print '</table><br>';
|
||||||
}
|
}
|
||||||
|
elseif (! is_numeric($conf->global->HOLIDAY_HIDE_BALANCE))
|
||||||
|
{
|
||||||
|
print $langs->trans($conf->global->HOLIDAY_HIDE_BALANCE).'<br>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
print '</div><div class="fichetwothirdright"><div class="ficheaddleft">';
|
print '</div><div class="fichetwothirdright"><div class="ficheaddleft">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user