View | Details | Raw Unified | Return to bug 41260
Collapse All | Expand All

(-)a/misc/cronjobs/holds/holds_reminder.pl (-3 / +10 lines)
Lines 247-254 foreach my $branchcode (@branchcodes) { #BEGIN BRANCH LOOP Link Here
247
        #if today is a holiday skip sending the message
247
        #if today is a holiday skip sending the message
248
        next if $calendar->is_holiday($date_to_run);
248
        next if $calendar->is_holiday($date_to_run);
249
        {
249
        {
250
            my $duration = DateTime::Duration->new( days => -$days );
250
            # IF parameter triggered is used and $waiting_date_static is holiday
251
            $waiting_date = $calendar->addDays( $date_to_run, $duration );    #Add negative of days
251
            # use $waiting_date_static as waiting since day to ensure that reminders
252
            # are send correctly
253
            my $is_waitingdate_holiday = $calendar->is_holiday($waiting_date_static);
254
            if ( $triggered && $is_waitingdate_holiday ) {
255
                $waiting_date = $waiting_date_static;
256
            } else {
257
                my $duration = DateTime::Duration->new( days => -$days );
258
                $waiting_date = $calendar->addDays( $date_to_run, $duration );    #Add negative of days
259
            }
252
        }
260
        }
253
    } else {
261
    } else {
254
        $waiting_date = $waiting_date_static;
262
        $waiting_date = $waiting_date_static;
255
- 

Return to bug 41260