Lines 135-141
$verbose = 1 unless $verbose or $confirm;
Link Here
|
135 |
print "Test run only\n" unless $confirm; |
135 |
print "Test run only\n" unless $confirm; |
136 |
|
136 |
|
137 |
print "getting auto renewals\n" if $verbose; |
137 |
print "getting auto renewals\n" if $verbose; |
138 |
my @auto_renews = Koha::Checkouts->search( |
138 |
my @all_auto_renews = Koha::Checkouts->search( |
139 |
{ |
139 |
{ |
140 |
auto_renew => 1, |
140 |
auto_renew => 1, |
141 |
'patron.autorenew_checkouts' => 1, |
141 |
'patron.autorenew_checkouts' => 1, |
Lines 145-150
my @auto_renews = Koha::Checkouts->search(
Link Here
|
145 |
order_by => 'patron.borrowernumber', |
145 |
order_by => 'patron.borrowernumber', |
146 |
} |
146 |
} |
147 |
)->as_list; |
147 |
)->as_list; |
|
|
148 |
|
149 |
# Exclude ItemsDeniedRenewal |
150 |
my @auto_renews; |
151 |
foreach my $issue (@all_auto_renews) { |
152 |
unless ( $issue->item->is_denied_renewal ) { |
153 |
push @auto_renews, $issue; |
154 |
} |
155 |
} |
156 |
|
148 |
print "found " . scalar @auto_renews . " auto renewals\n" if $verbose; |
157 |
print "found " . scalar @auto_renews . " auto renewals\n" if $verbose; |
149 |
|
158 |
|
150 |
my $cron_options = C4::Context->config('auto_renew_cronjob'); |
159 |
my $cron_options = C4::Context->config('auto_renew_cronjob'); |
151 |
- |
|
|