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