Lines 223-228
else {
Link Here
|
223 |
$date_to_run = dt_from_string(); |
223 |
$date_to_run = dt_from_string(); |
224 |
} |
224 |
} |
225 |
|
225 |
|
|
|
226 |
my $waiting_date_static = $date_to_run->clone->subtract( days => $days ); |
227 |
|
226 |
# Loop through each branch |
228 |
# Loop through each branch |
227 |
foreach my $branchcode (@branchcodes) { #BEGIN BRANCH LOOP |
229 |
foreach my $branchcode (@branchcodes) { #BEGIN BRANCH LOOP |
228 |
# Check that this branch has the letter code specified or skip this branch |
230 |
# Check that this branch has the letter code specified or skip this branch |
Lines 248-254
foreach my $branchcode (@branchcodes) { #BEGIN BRANCH LOOP
Link Here
|
248 |
my $duration = DateTime::Duration->new( days => -$days ); |
250 |
my $duration = DateTime::Duration->new( days => -$days ); |
249 |
$waiting_date = $calendar->addDays($date_to_run,$duration); #Add negative of days |
251 |
$waiting_date = $calendar->addDays($date_to_run,$duration); #Add negative of days |
250 |
} else { |
252 |
} else { |
251 |
$waiting_date = $date_to_run->subtract( days => $days ); |
253 |
$waiting_date = $waiting_date_static; |
252 |
} |
254 |
} |
253 |
|
255 |
|
254 |
# Find all the holds waiting since this date for the current branch |
256 |
# Find all the holds waiting since this date for the current branch |
255 |
- |
|
|