diff --git a/htdocs/holiday/card.php b/htdocs/holiday/card.php
index 0680799ed35..b84e8599e41 100644
--- a/htdocs/holiday/card.php
+++ b/htdocs/holiday/card.php
@@ -831,6 +831,10 @@ if (empty($id) || $action == 'add' || $action == 'request' || $action == 'create
dol_fiche_end();
}
+ elseif(! is_numeric($conf->global->HOLIDAY_HIDE_BALANCE))
+ {
+ print $langs->trans($conf->global->HOLIDAY_HIDE_BALANCE).'
';
+ }
dol_fiche_head();
diff --git a/htdocs/hrm/index.php b/htdocs/hrm/index.php
index f0e279bb848..2f360dce5c5 100644
--- a/htdocs/hrm/index.php
+++ b/htdocs/hrm/index.php
@@ -130,27 +130,34 @@ if (! empty($conf->global->MAIN_SEARCH_FORM_ON_HOME_AREAS)) // This is usele
if (! empty($conf->holiday->enabled))
{
- $user_id = $user->id;
+ if (empty($conf->global->HOLIDAY_HIDE_BALANCE))
+ {
+ $user_id = $user->id;
- print '
| '.$langs->trans("Holidays").' | ||||||||
|---|---|---|---|---|---|---|---|---|
';
+ print '
'; + print ' | ';
+ print '