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

(-)a/C4/SIP/ILS/Transaction/Checkin.pm (-3 / +9 lines)
Lines 13-19 use C4::SIP::ILS::Transaction; Link Here
13
13
14
use C4::Circulation qw( AddReturn LostItem );
14
use C4::Circulation qw( AddReturn LostItem );
15
use C4::Items qw( ModItemTransfer );
15
use C4::Items qw( ModItemTransfer );
16
use C4::Reserves qw( ModReserve ModReserveAffect );
16
use C4::Reserves qw( ModReserve ModReserveAffect CheckReserves );
17
use Koha::DateUtils qw( dt_from_string );
17
use Koha::DateUtils qw( dt_from_string );
18
use Koha::Items;
18
use Koha::Items;
19
19
Lines 87-93 sub do_checkin { Link Here
87
        $messages->{additional_materials} = 1;
87
        $messages->{additional_materials} = 1;
88
    }
88
    }
89
89
90
    my $checkin_blocked_by_holds = $holds_block_checkin && $item->biblio->holds->count;
90
    my $reserved;
91
    my $lookahead = C4::Context->preference('ConfirmFutureHolds'); #number of days to look for future holds
92
    my ($resfound, $resrec, undef) = C4::Reserves::CheckReserves( $item->itemnumber, undef, $lookahead ) unless ( $item->withdrawn );
93
    if ( $resfound eq "Reserved") {
94
        $reserved = 1;
95
    }
96
97
    my $checkin_blocked_by_holds = $holds_block_checkin && $reserved;
91
98
92
    ( $return, $messages, $issue, $borrower ) =
99
    ( $return, $messages, $issue, $borrower ) =
93
      AddReturn( $barcode, $branch, undef, $return_date )
100
      AddReturn( $barcode, $branch, undef, $return_date )
94
- 

Return to bug 30118