View | Details | Raw Unified | Return to bug 23207
Collapse All | Expand All

(-)a/Koha/Checkouts.pm (-5 / +4 lines)
Lines 82-93 sub automatic_checkin { Link Here
82
        { prefetch => 'item'}
82
        { prefetch => 'item'}
83
    );
83
    );
84
84
85
    while(my $checkout = $due_checkouts->next) {
85
    while ( my $checkout = $due_checkouts->next ) {
86
        if($checkout->item->itemtype->automatic_checkin) {
86
        if ( $checkout->item->itemtype->automatic_checkin ) {
87
            C4::Circulation::AddReturn($checkout->item->barcode, $checkout->branchcode);
87
            C4::Circulation::AddReturn( $checkout->item->barcode,
88
                $checkout->branchcode, undef, dt_from_string($checkout->date_due) );
88
        }
89
        }
89
    }
90
    }
90
91
}
91
}
92
92
93
=head3 type
93
=head3 type
94
- 

Return to bug 23207