Lines 777-782
sub GetLastPickupDate {
Link Here
|
777 |
} else { |
777 |
} else { |
778 |
$reservebranch = $reserve->branchcode; |
778 |
$reservebranch = $reserve->branchcode; |
779 |
} |
779 |
} |
|
|
780 |
|
780 |
if ( defined($issuingrule) && defined $issuingrule->holdspickupwait && $issuingrule->holdspickupwait > 0 ) { #If holdspickupwait is <= 0, it means this feature is disabled for this type of material. |
781 |
if ( defined($issuingrule) && defined $issuingrule->holdspickupwait && $issuingrule->holdspickupwait > 0 ) { #If holdspickupwait is <= 0, it means this feature is disabled for this type of material. |
781 |
$date->add( days => $issuingrule->holdspickupwait ); |
782 |
$date->add( days => $issuingrule->holdspickupwait ); |
782 |
my $calendar = Koha::Calendar->new( branchcode => $reservebranch ); |
783 |
my $calendar = Koha::Calendar->new( branchcode => $reservebranch ); |
Lines 785-790
sub GetLastPickupDate {
Link Here
|
785 |
$date->add( days => 1 ); |
786 |
$date->add( days => 1 ); |
786 |
$is_holiday = $calendar->is_holiday( $date ); |
787 |
$is_holiday = $calendar->is_holiday( $date ); |
787 |
} |
788 |
} |
|
|
789 |
|
790 |
if ( C4::Context->preference("ExcludeHolidaysFromMaxPickUpDelay") ) { |
791 |
$date = $calendar->days_forward( dt_from_string(), $issuingrule->holdspickupwait ); |
792 |
} |
793 |
|
788 |
$reserve->{lastpickupdate} = $date->ymd(); |
794 |
$reserve->{lastpickupdate} = $date->ymd(); |
789 |
return $date; |
795 |
return $date; |
790 |
} |
796 |
} |
791 |
- |
|
|