HOLIDAY_HIDE_FOR_NON_SALARIES replaces !HOLIDAY_FOR_NON_SALARIES_TOO
This commit is contained in:
parent
81bba56776
commit
38f1431534
@ -619,7 +619,7 @@ function num_public_holiday($timestampStart, $timestampEnd, $country_code = '',
|
||||
$specialdayrule = array();
|
||||
|
||||
// Check to ensure we use correct parameters
|
||||
if ((($timestampEnd - $timestampStart) % 86400) != 0) return 'ErrorDates must use same hours and must be GMT dates';
|
||||
if ((($timestampEnd - $timestampStart) % 86400) != 0) return 'Error Dates must use same hours and must be GMT dates';
|
||||
|
||||
if (empty($country_code)) $country_code = $mysoc->country_code;
|
||||
|
||||
|
||||
@ -55,8 +55,8 @@ $now = dol_now();
|
||||
|
||||
$childids = $user->getAllChildIds(1);
|
||||
|
||||
$morefilter = 'AND employee = 1';
|
||||
if (!empty($conf->global->HOLIDAY_FOR_NON_SALARIES_TOO)) $morefilter = '';
|
||||
$morefilter = '';
|
||||
if (!empty($conf->global->HOLIDAY_HIDE_FOR_NON_SALARIES)) $morefilter = 'AND employee = 1';
|
||||
|
||||
$error = 0;
|
||||
|
||||
|
||||
@ -487,8 +487,8 @@ if ($resql)
|
||||
|
||||
if (!empty($arrayfields['cp.fk_user']['checked']))
|
||||
{
|
||||
$morefilter = 'AND employee = 1';
|
||||
if (!empty($conf->global->HOLIDAY_FOR_NON_SALARIES_TOO)) $morefilter = '';
|
||||
$morefilter = '';
|
||||
if (!empty($conf->global->HOLIDAY_HIDE_FOR_NON_SALARIES)) $morefilter = 'AND employee = 1';
|
||||
|
||||
// User
|
||||
$disabled = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user