Lines 14371-14381
if( CheckVersion( $DBversion ) ) {
Link Here
|
14371 |
} |
14371 |
} |
14372 |
|
14372 |
|
14373 |
my $calendar = Koha::Calendar->new( branchcode => $hold->branchcode ); |
14373 |
my $calendar = Koha::Calendar->new( branchcode => $hold->branchcode ); |
14374 |
my $expirationdate = dt_from_string(); |
14374 |
my $expirationdate = dt_from_string($hold->waitingdate); |
14375 |
$expirationdate->add(days => $max_pickup_delay); |
14375 |
$expirationdate->add(days => $max_pickup_delay); |
14376 |
|
14376 |
|
14377 |
if ( C4::Context->preference("ExcludeHolidaysFromMaxPickUpDelay") ) { |
14377 |
if ( C4::Context->preference("ExcludeHolidaysFromMaxPickUpDelay") ) { |
14378 |
$expirationdate = $calendar->days_forward( dt_from_string(), $max_pickup_delay ); |
14378 |
$expirationdate = $calendar->days_forward( dt_from_string($hold->waitingdate), $max_pickup_delay ); |
14379 |
} |
14379 |
} |
14380 |
|
14380 |
|
14381 |
my $cmp = $requested_expiration ? DateTime->compare($requested_expiration, $expirationdate) : 0; |
14381 |
my $cmp = $requested_expiration ? DateTime->compare($requested_expiration, $expirationdate) : 0; |
14382 |
- |
|
|