Lines 43-49
my $item1 = $builder->build_sample_item();
Link Here
|
43 |
my $biblio1 = $item1->biblio; |
43 |
my $biblio1 = $item1->biblio; |
44 |
my $branch1 = $item1->holdingbranch; |
44 |
my $branch1 = $item1->holdingbranch; |
45 |
my $itemtype1 = $item1->effective_itemtype; |
45 |
my $itemtype1 = $item1->effective_itemtype; |
46 |
my $item2 = $builder->build_sample_item(); |
46 |
my $item2 = $builder->build_sample_item({ biblionumber => $biblio1->biblionumber }); |
47 |
my $biblio2 = $item1->biblio; |
47 |
my $biblio2 = $item1->biblio; |
48 |
my $branch2 = $item1->holdingbranch; |
48 |
my $branch2 = $item1->holdingbranch; |
49 |
my $itemtype2 = $item1->effective_itemtype; |
49 |
my $itemtype2 = $item1->effective_itemtype; |
Lines 168-174
ok( $recall->cancelled, "Recall cancelled with move_recall" );
Link Here
|
168 |
expirationdate => undef, |
168 |
expirationdate => undef, |
169 |
interface => 'COMMANDLINE', |
169 |
interface => 'COMMANDLINE', |
170 |
}); |
170 |
}); |
171 |
$message = Koha::Recalls->move_recall({ recall_id => $recall->recall_id, itemnumber => $item2->itemnumber, borrowernumber => $patron1->borrowernumber }); |
171 |
$message = Koha::Recalls->move_recall({ recall_id => $recall->recall_id, item => $item2, borrowernumber => $patron1->borrowernumber }); |
172 |
$recall = Koha::Recalls->find( $recall->recall_id ); |
172 |
$recall = Koha::Recalls->find( $recall->recall_id ); |
173 |
ok( $recall->finished, "Recall fulfilled with move_recall" ); |
173 |
ok( $recall->finished, "Recall fulfilled with move_recall" ); |
174 |
|
174 |
|
175 |
- |
|
|