Lines 999-1004
Cancels all reserves with an expiration date from before today.
Link Here
|
999 |
|
999 |
|
1000 |
sub CancelExpiredReserves { |
1000 |
sub CancelExpiredReserves { |
1001 |
my $cancellation_reason = shift; |
1001 |
my $cancellation_reason = shift; |
|
|
1002 |
my $notify = shift; |
1002 |
my $today = dt_from_string(); |
1003 |
my $today = dt_from_string(); |
1003 |
my $cancel_on_holidays = C4::Context->preference('ExpireReservesOnHolidays'); |
1004 |
my $cancel_on_holidays = C4::Context->preference('ExpireReservesOnHolidays'); |
1004 |
my $expireWaiting = C4::Context->preference('ExpireReservesMaxPickUpDelay'); |
1005 |
my $expireWaiting = C4::Context->preference('ExpireReservesMaxPickUpDelay'); |
Lines 1023-1028
sub CancelExpiredReserves {
Link Here
|
1023 |
|
1024 |
|
1024 |
my $cancel_params = {}; |
1025 |
my $cancel_params = {}; |
1025 |
$cancel_params->{cancellation_reason} = $cancellation_reason if defined($cancellation_reason); |
1026 |
$cancel_params->{cancellation_reason} = $cancellation_reason if defined($cancellation_reason); |
|
|
1027 |
$cancel_params->{notify_patron} = $notify if defined($notify); |
1026 |
if ( defined($hold->found) && $hold->found eq 'W' ) { |
1028 |
if ( defined($hold->found) && $hold->found eq 'W' ) { |
1027 |
$cancel_params->{charge_cancel_fee} = 1; |
1029 |
$cancel_params->{charge_cancel_fee} = 1; |
1028 |
} |
1030 |
} |