{ prefetch => 'item'}
);
while(my $checkout = $due_checkouts->next) {
while ( my $checkout = $due_checkouts->next ) {
if($checkout->item->itemtype->automatic_checkin) {
if ( $checkout->item->itemtype->automatic_checkin ) {
C4::Circulation::AddReturn($checkout->item->barcode, $checkout->branchcode);
C4::Circulation::AddReturn( $checkout->item->barcode,
$checkout->branchcode, undef, dt_from_string($checkout->date_due) );
}
=head3 type
-