Lines 108-114
C4::Context->set_preference( 'decreaseLoanHighHoldsControl', 'static' );
Link Here
|
108 |
C4::Context->set_preference( 'decreaseLoanHighHoldsIgnoreStatuses', 'damaged,itemlost,notforloan,withdrawn' ); |
108 |
C4::Context->set_preference( 'decreaseLoanHighHoldsIgnoreStatuses', 'damaged,itemlost,notforloan,withdrawn' ); |
109 |
|
109 |
|
110 |
my $item_hr = { itemnumber => $item->id, biblionumber => $biblio->id, homebranch => $library->{branchcode}, holdingbranch => $library->{branchcode}, barcode => $item->barcode }; |
110 |
my $item_hr = { itemnumber => $item->id, biblionumber => $biblio->id, homebranch => $library->{branchcode}, holdingbranch => $library->{branchcode}, barcode => $item->barcode }; |
111 |
my $patron_hr = { borrower => $patron->id, branchcode => $library->{branchcode} }; |
111 |
my $patron_hr = { borrowernumber => $patron->id, branchcode => $library->{branchcode} }; |
112 |
|
112 |
|
113 |
my $data = C4::Circulation::checkHighHolds( $item_hr, $patron_hr ); |
113 |
my $data = C4::Circulation::checkHighHolds( $item_hr, $patron_hr ); |
114 |
is( $data->{exceeded}, 1, "Static mode should exceed threshold" ); |
114 |
is( $data->{exceeded}, 1, "Static mode should exceed threshold" ); |
115 |
- |
|
|