Lines 426-432
subtest 'get_items_that_can_fill' => sub {
Link Here
|
426 |
my $item_5 = $builder->build_sample_item( { biblionumber => $biblio->biblionumber, itype => $itype_2->itemtype } ); |
426 |
my $item_5 = $builder->build_sample_item( { biblionumber => $biblio->biblionumber, itype => $itype_2->itemtype } ); |
427 |
my $lost = $builder->build_sample_item( { biblionumber => $biblio->biblionumber, itemlost => 1 } ); |
427 |
my $lost = $builder->build_sample_item( { biblionumber => $biblio->biblionumber, itemlost => 1 } ); |
428 |
my $withdrawn = $builder->build_sample_item( { biblionumber => $biblio->biblionumber, withdrawn => 1 } ); |
428 |
my $withdrawn = $builder->build_sample_item( { biblionumber => $biblio->biblionumber, withdrawn => 1 } ); |
429 |
my $notforloan = $builder->build_sample_item( { biblionumber => $biblio->biblionumber, notforloan => 1 } ); |
429 |
my $notforloan = $builder->build_sample_item( { biblionumber => $biblio->biblionumber, notforloan => -1 } ); |
430 |
|
430 |
|
431 |
my $patron_1 = $builder->build_object( { class => 'Koha::Patrons' } ); |
431 |
my $patron_1 = $builder->build_object( { class => 'Koha::Patrons' } ); |
432 |
my $patron_2 = $builder->build_object( { class => 'Koha::Patrons' } ); |
432 |
my $patron_2 = $builder->build_object( { class => 'Koha::Patrons' } ); |
Lines 466-471
subtest 'get_items_that_can_fill' => sub {
Link Here
|
466 |
} |
466 |
} |
467 |
); |
467 |
); |
468 |
|
468 |
|
|
|
469 |
my $notforloan_reserve_id = C4::Reserves::AddReserve( |
470 |
{ |
471 |
borrowernumber => $patron_2->borrowernumber, |
472 |
biblionumber => $biblio->biblionumber, |
473 |
priority => 0, |
474 |
itemnumber => $notforloan->itemnumber, |
475 |
} |
476 |
); |
477 |
|
469 |
# item 3 is on loan |
478 |
# item 3 is on loan |
470 |
AddIssue( $patron_3->unblessed, $item_3->barcode ); |
479 |
AddIssue( $patron_3->unblessed, $item_3->barcode ); |
471 |
|
480 |
|
Lines 483-489
subtest 'get_items_that_can_fill' => sub {
Link Here
|
483 |
|
492 |
|
484 |
$holds = Koha::Holds->search( |
493 |
$holds = Koha::Holds->search( |
485 |
{ |
494 |
{ |
486 |
reserve_id => [ $reserve_id_1, $reserve_id_2, $waiting_reserve_id, ] |
495 |
reserve_id => [ $reserve_id_1, $reserve_id_2, $waiting_reserve_id, $notforloan_reserve_id, ] |
487 |
} |
496 |
} |
488 |
); |
497 |
); |
489 |
|
498 |
|
490 |
- |
|
|