Lines 3420-3425
subtest 'Cancel transfers on lost items' => sub {
Link Here
|
3420 |
from_branch => $library_1->{branchcode}, |
3420 |
from_branch => $library_1->{branchcode}, |
3421 |
to_branch => $library_2->{branchcode}, |
3421 |
to_branch => $library_2->{branchcode}, |
3422 |
barcode => $item->barcode, |
3422 |
barcode => $item->barcode, |
|
|
3423 |
trigger => 'Reserve', |
3423 |
}); |
3424 |
}); |
3424 |
my $hold = Koha::Holds->find( $reserve_id ); |
3425 |
my $hold = Koha::Holds->find( $reserve_id ); |
3425 |
is( $hold->found, 'T', 'Hold is in transit' ); |
3426 |
is( $hold->found, 'T', 'Hold is in transit' ); |
Lines 4682-4688
subtest 'Checkout should correctly terminate a transfer' => sub {
Link Here
|
4682 |
|
4683 |
|
4683 |
my $do_transfer = 1; |
4684 |
my $do_transfer = 1; |
4684 |
ModItemTransfer( $item->itemnumber, $library_1->branchcode, |
4685 |
ModItemTransfer( $item->itemnumber, $library_1->branchcode, |
4685 |
$library_2->branchcode ); |
4686 |
$library_2->branchcode, 'Manual' ); |
4686 |
ModReserveAffect( $item->itemnumber, undef, $do_transfer, $reserve_id ); |
4687 |
ModReserveAffect( $item->itemnumber, undef, $do_transfer, $reserve_id ); |
4687 |
GetOtherReserves( $item->itemnumber ) |
4688 |
GetOtherReserves( $item->itemnumber ) |
4688 |
; # To put the Reason, it's what does returns.pl... |
4689 |
; # To put the Reason, it's what does returns.pl... |