Lines 736-741
sub GetLastPickupDate {
Link Here
|
736 |
} else { |
736 |
} else { |
737 |
$reservebranch = $reserve->branchcode; |
737 |
$reservebranch = $reserve->branchcode; |
738 |
} |
738 |
} |
|
|
739 |
|
739 |
if ( defined($issuingrule) && defined $issuingrule->holdspickupwait && $issuingrule->holdspickupwait > 0 ) { #If holdspickupwait is <= 0, it means this feature is disabled for this type of material. |
740 |
if ( defined($issuingrule) && defined $issuingrule->holdspickupwait && $issuingrule->holdspickupwait > 0 ) { #If holdspickupwait is <= 0, it means this feature is disabled for this type of material. |
740 |
$date->add( days => $issuingrule->holdspickupwait ); |
741 |
$date->add( days => $issuingrule->holdspickupwait ); |
741 |
my $calendar = Koha::Calendar->new( branchcode => $reservebranch ); |
742 |
my $calendar = Koha::Calendar->new( branchcode => $reservebranch ); |
Lines 744-749
sub GetLastPickupDate {
Link Here
|
744 |
$date->add( days => 1 ); |
745 |
$date->add( days => 1 ); |
745 |
$is_holiday = $calendar->is_holiday( $date ); |
746 |
$is_holiday = $calendar->is_holiday( $date ); |
746 |
} |
747 |
} |
|
|
748 |
|
749 |
if ( C4::Context->preference("ExcludeHolidaysFromMaxPickUpDelay") ) { |
750 |
$date = $calendar->days_forward( dt_from_string(), $issuingrule->holdspickupwait ); |
751 |
} |
752 |
|
747 |
$reserve->{lastpickupdate} = $date->ymd(); |
753 |
$reserve->{lastpickupdate} = $date->ymd(); |
748 |
return $date; |
754 |
return $date; |
749 |
} |
755 |
} |
750 |
- |
|
|