Better management of hidden option HOLIDAY_HIDE_BALANCE

This commit is contained in:
Laurent Destailleur 2018-03-19 15:13:36 +01:00
parent eb03fb7540
commit e0164884ee
2 changed files with 29 additions and 18 deletions

View File

@ -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();

View File

@ -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">';