Lines 1712-1719
subtest 'Recalls tests' => sub {
Link Here
|
1712 |
# Patron2 has Item1 checked out. Patron1 has placed a biblio-level recall on Biblio1, so check if Item1 can fulfill Patron1's recall. |
1712 |
# Patron2 has Item1 checked out. Patron1 has placed a biblio-level recall on Biblio1, so check if Item1 can fulfill Patron1's recall. |
1713 |
|
1713 |
|
1714 |
Koha::CirculationRules->set_rules({ |
1714 |
Koha::CirculationRules->set_rules({ |
1715 |
branchcode => undef, |
1715 |
branchcode => $branchcode, |
1716 |
categorycode => undef, |
1716 |
categorycode => $patron1->categorycode, |
1717 |
itemtype => $item1->effective_itemtype, |
1717 |
itemtype => $item1->effective_itemtype, |
1718 |
rules => { |
1718 |
rules => { |
1719 |
recalls_allowed => 0, |
1719 |
recalls_allowed => 0, |
Lines 1724-1731
subtest 'Recalls tests' => sub {
Link Here
|
1724 |
is( $item1->can_be_waiting_recall, 0, "Recalls not allowed for this itemtype" ); |
1724 |
is( $item1->can_be_waiting_recall, 0, "Recalls not allowed for this itemtype" ); |
1725 |
|
1725 |
|
1726 |
Koha::CirculationRules->set_rules({ |
1726 |
Koha::CirculationRules->set_rules({ |
1727 |
branchcode => undef, |
1727 |
branchcode => $branchcode, |
1728 |
categorycode => undef, |
1728 |
categorycode => $patron1->categorycode, |
1729 |
itemtype => $item1->effective_itemtype, |
1729 |
itemtype => $item1->effective_itemtype, |
1730 |
rules => { |
1730 |
rules => { |
1731 |
recalls_allowed => 1, |
1731 |
recalls_allowed => 1, |
1732 |
- |
|
|