Lines 630-642
my $limit = Koha::Item::Transfer::Limit->new(
Link Here
|
630 |
is( C4::Reserves::IsAvailableForItemLevelRequest($item, $patron, $pickup_branch), 0, "Item level request not available due to transfer limit" ); |
630 |
is( C4::Reserves::IsAvailableForItemLevelRequest($item, $patron, $pickup_branch), 0, "Item level request not available due to transfer limit" ); |
631 |
t::lib::Mocks::mock_preference( 'UseBranchTransferLimits', '0' ); |
631 |
t::lib::Mocks::mock_preference( 'UseBranchTransferLimits', '0' ); |
632 |
|
632 |
|
633 |
my $itype = C4::Reserves::_get_itype($item); |
|
|
634 |
my $categorycode = $borrower->{categorycode}; |
633 |
my $categorycode = $borrower->{categorycode}; |
635 |
my $holdingbranch = $item->{holdingbranch}; |
634 |
my $holdingbranch = $item->{holdingbranch}; |
636 |
Koha::CirculationRules->set_rules( |
635 |
Koha::CirculationRules->set_rules( |
637 |
{ |
636 |
{ |
638 |
categorycode => $categorycode, |
637 |
categorycode => $categorycode, |
639 |
itemtype => $itype, |
638 |
itemtype => $item->effective_itemtype, |
640 |
branchcode => $holdingbranch, |
639 |
branchcode => $holdingbranch, |
641 |
rules => { |
640 |
rules => { |
642 |
onshelfholds => 1, |
641 |
onshelfholds => 1, |
643 |
- |
|
|