Skip to content

Commit

Permalink
[5.4] MSPB-376: Set 'range dates' as 'cycle=monthly' for non recurring (
Browse files Browse the repository at this point in the history
  • Loading branch information
pcandia authored Oct 29, 2024
1 parent cd6fef6 commit d558dd8
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
Expand Up @@ -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'
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit d558dd8

Please sign in to comment.