@@ -, +, @@ --- tools/batch_extend_due_dates.pl | 4 ++++ 1 file changed, 4 insertions(+) --- a/tools/batch_extend_due_dates.pl +++ a/tools/batch_extend_due_dates.pl @@ -24,6 +24,7 @@ use CGI; use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_html_with_http_headers ); +use C4::Log qw( logaction ); use Koha::Checkouts; use Koha::DateUtils qw( dt_from_string output_pref ); @@ -132,6 +133,7 @@ elsif ( $op eq 'modify' ) { $new_hard_due_date &&= dt_from_string($new_hard_due_date); my $checkouts = Koha::Checkouts->search( { issue_id => { -in => \@issue_ids } } ); + my $RenewalLog = C4::Context->preference('RenewalLog'); while ( my $checkout = $checkouts->next ) { my $new_due_date = calc_new_due_date( { @@ -146,6 +148,8 @@ elsif ( $op eq 'modify' ) { # Update items.onloan $checkout->item->onloan($new_due_date)->store; + + logaction("CIRCULATION", "RENEWAL", $checkout->borrowernumber, $checkout->itemnumber) if $RenewalLog; } $template->param( --