';
-
-if (! empty($conf->holiday->enabled))
-{
- $user_id = $user->id;
-
- $nbaquis=$holiday->getCPforUser($user_id);
- $nbdeduced=$holiday->getConfCP('nbHolidayDeducted');
- $nb_holiday = $nbaquis / $nbdeduced;
-
- print '
';
- print '| '.$langs->trans("Holidays").' |
';
- print "";
- print '| ';
- print $langs->trans('SoldeCPUser',round($nb_holiday,2)).($nbdeduced != 1 ? ' ('.$nbaquis.' / '.$nbdeduced.')' : '');
- print ' | ';
- print '
';
- print '
';
-}
-
-
/*
* Search expenses
*/
@@ -124,6 +104,26 @@ if (! empty($conf->expensereport->enabled) && $user->rights->expensereport->lire
print "
";
}
+
+if (! empty($conf->holiday->enabled))
+{
+ $user_id = $user->id;
+
+ $nbaquis=$holiday->getCPforUser($user_id);
+ $nbdeduced=$holiday->getConfCP('nbHolidayDeducted');
+ $nb_holiday = $nbaquis / $nbdeduced;
+
+ print '
';
+ print '| '.$langs->trans("Holidays").' |
';
+ print "";
+ print '| ';
+ print $langs->trans('SoldeCPUser',round($nb_holiday,2)).($nbdeduced != 1 ? ' ('.$nbaquis.' / '.$nbdeduced.')' : '');
+ print ' | ';
+ print '
';
+ print '
';
+}
+
+
print '