Lines 914-919
Cancels all reserves with an expiration date from before today.
Link Here
|
914 |
|
914 |
|
915 |
sub CancelExpiredReserves { |
915 |
sub CancelExpiredReserves { |
916 |
my $cancellation_reason = shift; |
916 |
my $cancellation_reason = shift; |
|
|
917 |
my $notify = shift; |
917 |
my $today = dt_from_string(); |
918 |
my $today = dt_from_string(); |
918 |
my $cancel_on_holidays = C4::Context->preference('ExpireReservesOnHolidays'); |
919 |
my $cancel_on_holidays = C4::Context->preference('ExpireReservesOnHolidays'); |
919 |
my $expireWaiting = C4::Context->preference('ExpireReservesMaxPickUpDelay'); |
920 |
my $expireWaiting = C4::Context->preference('ExpireReservesMaxPickUpDelay'); |
Lines 932-937
sub CancelExpiredReserves {
Link Here
|
932 |
|
933 |
|
933 |
my $cancel_params = {}; |
934 |
my $cancel_params = {}; |
934 |
$cancel_params->{cancellation_reason} = $cancellation_reason if defined($cancellation_reason); |
935 |
$cancel_params->{cancellation_reason} = $cancellation_reason if defined($cancellation_reason); |
|
|
936 |
$cancel_params->{notify_patron} = $notify if defined($notify); |
935 |
if ( defined($hold->found) && $hold->found eq 'W' ) { |
937 |
if ( defined($hold->found) && $hold->found eq 'W' ) { |
936 |
$cancel_params->{charge_cancel_fee} = 1; |
938 |
$cancel_params->{charge_cancel_fee} = 1; |
937 |
} |
939 |
} |