Lines 245-251
is( $hold->priority, '6', "Test AlterPriority(), move to bottom" );
Link Here
|
245 |
my $foreign_biblio = $builder->build_sample_biblio({ itemtype => 'DUMMY' }); |
245 |
my $foreign_biblio = $builder->build_sample_biblio({ itemtype => 'DUMMY' }); |
246 |
my ($foreign_item_bibnum, $foreign_item_bibitemnum, $foreign_itemnumber) |
246 |
my ($foreign_item_bibnum, $foreign_item_bibitemnum, $foreign_itemnumber) |
247 |
= AddItem({ homebranch => $branch_2, holdingbranch => $branch_2 } , $foreign_biblio->biblionumber); |
247 |
= AddItem({ homebranch => $branch_2, holdingbranch => $branch_2 } , $foreign_biblio->biblionumber); |
|
|
248 |
# Cleanup circulation rules |
248 |
$dbh->do('DELETE FROM issuingrules'); |
249 |
$dbh->do('DELETE FROM issuingrules'); |
|
|
250 |
$dbh->do('DELETE FROM branch_item_rules'); |
251 |
$dbh->do('DELETE FROM default_branch_item_rules'); |
252 |
$dbh->do('DELETE FROM default_branch_circ_rules'); |
253 |
$dbh->do('DELETE FROM default_circ_rules'); |
249 |
$dbh->do( |
254 |
$dbh->do( |
250 |
q{INSERT INTO issuingrules (categorycode, branchcode, itemtype, reservesallowed, holds_per_record) |
255 |
q{INSERT INTO issuingrules (categorycode, branchcode, itemtype, reservesallowed, holds_per_record) |
251 |
VALUES (?, ?, ?, ?, ?)}, |
256 |
VALUES (?, ?, ?, ?, ?)}, |
Lines 555-560
subtest 'CanItemBeReserved / holds_per_day tests' => sub {
Link Here
|
555 |
|
560 |
|
556 |
Koha::Holds->search->delete; |
561 |
Koha::Holds->search->delete; |
557 |
$dbh->do('DELETE FROM issues'); |
562 |
$dbh->do('DELETE FROM issues'); |
|
|
563 |
$dbh->do('DELETE FROM issuingrules'); |
564 |
$dbh->do('DELETE FROM branch_item_rules'); |
565 |
$dbh->do('DELETE FROM default_branch_item_rules'); |
566 |
$dbh->do('DELETE FROM default_branch_circ_rules'); |
567 |
$dbh->do('DELETE FROM default_circ_rules'); |
558 |
Koha::Items->search->delete; |
568 |
Koha::Items->search->delete; |
559 |
Koha::Biblios->search->delete; |
569 |
Koha::Biblios->search->delete; |
560 |
|
570 |
|