Lines 14374-14380
if( CheckVersion( $DBversion ) ) {
Link Here
|
14374 |
|
14374 |
|
14375 |
my $expirationdate = dt_from_string($hold->{waitingdate}); |
14375 |
my $expirationdate = dt_from_string($hold->{waitingdate}); |
14376 |
if ( C4::Context->preference("ExcludeHolidaysFromMaxPickUpDelay") ) { |
14376 |
if ( C4::Context->preference("ExcludeHolidaysFromMaxPickUpDelay") ) { |
14377 |
my $calendar = Koha::Calendar->new( branchcode => $hold->{branchcode} ); |
14377 |
my $calendar = Koha::Calendar->new( branchcode => $hold->{branchcode}, days_mode => C4::Context->preference('useDaysMode') ); |
14378 |
$expirationdate = $calendar->days_forward( $expirationdate, $max_pickup_delay ); |
14378 |
$expirationdate = $calendar->days_forward( $expirationdate, $max_pickup_delay ); |
14379 |
} else { |
14379 |
} else { |
14380 |
$expirationdate->add( days => $max_pickup_delay ); |
14380 |
$expirationdate->add( days => $max_pickup_delay ); |
14381 |
- |
|
|