Skip to content

Commit

Permalink
[5.3] MSPB-376: Set 'range dates' as 'cycle=monthly' for non recurring (
Browse files Browse the repository at this point in the history
pcandia committed Oct 30, 2024

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent 6cac7af commit cabe589
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions submodules/strategyHolidays/strategyHolidays.js
Original file line number Diff line number Diff line change
@@ -1087,7 +1087,11 @@ define(function(require) {
} else {
holidayRule = _.merge({}, holidayRuleConfig, {
name: name,
cycle: holidayData.recurring ? 'yearly' : 'date',
cycle: holidayData.recurring
? 'yearly'
: holidayData.toDay
? 'monthly'
: 'date',
interval: 1,
month: month,
type: 'main_holidays'
@@ -1149,7 +1153,7 @@ define(function(require) {
days = _.range(fromDay, toDay + 1),
rule = {
name: name + '_' + month,
cycle: data.start_date ? 'date' : 'yearly',
cycle: data.start_date ? 'monthly' : 'yearly',
days: days,
interval: 1,
month: month,

0 comments on commit cabe589

Please sign in to comment.