|
Lines 120-126
If omitted the patron's messaging preferences for Hold notices will be used.
Link Here
|
| 120 |
If supplied the notice types will be force sent even if patron has not selected hold notices |
120 |
If supplied the notice types will be force sent even if patron has not selected hold notices |
| 121 |
Email and SMS will fall back to print if there is no valid info in the patron's account |
121 |
Email and SMS will fall back to print if there is no valid info in the patron's account |
| 122 |
|
122 |
|
| 123 |
|
|
|
| 124 |
=back |
123 |
=back |
| 125 |
|
124 |
|
| 126 |
=head1 DESCRIPTION |
125 |
=head1 DESCRIPTION |
|
Lines 244-251
foreach my $branchcode (@branchcodes) { #BEGIN BRANCH LOOP
Link Here
|
| 244 |
my $waiting_date; |
243 |
my $waiting_date; |
| 245 |
if ($use_calendar) { |
244 |
if ($use_calendar) { |
| 246 |
my $calendar = Koha::Calendar->new( branchcode => $branchcode, days_mode => 'Calendar' ); |
245 |
my $calendar = Koha::Calendar->new( branchcode => $branchcode, days_mode => 'Calendar' ); |
| 247 |
my $duration = DateTime::Duration->new( days => -$days ); |
246 |
|
| 248 |
$waiting_date = $calendar->addDays( $date_to_run, $duration ); #Add negative of days |
247 |
#if today is a holiday skip sending the message |
|
|
248 |
next if $calendar->is_holiday($date_to_run); |
| 249 |
{ |
| 250 |
my $duration = DateTime::Duration->new( days => -$days ); |
| 251 |
$waiting_date = $calendar->addDays( $date_to_run, $duration ); #Add negative of days |
| 252 |
} |
| 249 |
} else { |
253 |
} else { |
| 250 |
$waiting_date = $waiting_date_static; |
254 |
$waiting_date = $waiting_date_static; |
| 251 |
} |
255 |
} |
| 252 |
- |
|
|