Lines 1738-1747
subtest 'Koha::Holds->get_items_that_can_fill returns items with datecancelled o
Link Here
|
1738 |
my $biblio2 = $builder->build_sample_biblio(); |
1738 |
my $biblio2 = $builder->build_sample_biblio(); |
1739 |
my $item2 = $builder->build_sample_item({ biblionumber => $biblio2->biblionumber }); |
1739 |
my $item2 = $builder->build_sample_item({ biblionumber => $biblio2->biblionumber }); |
1740 |
|
1740 |
|
1741 |
my $transfer2 = $builder->build_object({ class => "Koha::Item::Transfers", value => { |
1741 |
my $transfer2 = $builder->build_object( |
1742 |
datecancelled => undef, |
1742 |
{ class => "Koha::Item::Transfers", |
1743 |
itemnumber => $item2->itemnumber |
1743 |
value => { |
1744 |
}}); |
1744 |
datearrived => dt_from_string, |
|
|
1745 |
datecancelled => undef, |
1746 |
itemnumber => $item2->itemnumber |
1747 |
} |
1748 |
} |
1749 |
); |
1745 |
|
1750 |
|
1746 |
my $hold2 = $builder->build_object({ class => 'Koha::Holds', value => { |
1751 |
my $hold2 = $builder->build_object({ class => 'Koha::Holds', value => { |
1747 |
biblionumber => $biblio2->biblionumber, |
1752 |
biblionumber => $biblio2->biblionumber, |