Lines 25-31
use Koha::CirculationRules;
Link Here
|
25 |
|
25 |
|
26 |
use Koha::Patrons; |
26 |
use Koha::Patrons; |
27 |
|
27 |
|
28 |
use Test::More tests => 15; |
28 |
use Test::More tests => 16; |
29 |
use t::lib::Mocks; |
29 |
use t::lib::Mocks; |
30 |
use t::lib::TestBuilder; |
30 |
use t::lib::TestBuilder; |
31 |
|
31 |
|
Lines 307-313
is( $messages->{NeedsTransfer}, $samplebranch1->{branchcode}, "AddReturn respect
Link Here
|
307 |
ModItemTransfer($item_id2, $samplebranch2->{branchcode}, $samplebranch1->{branchcode}, "ReturnToHolding"); |
307 |
ModItemTransfer($item_id2, $samplebranch2->{branchcode}, $samplebranch1->{branchcode}, "ReturnToHolding"); |
308 |
# Fulfill it |
308 |
# Fulfill it |
309 |
($doreturn, $messages, $iteminformation, $borrower) = AddReturn('barcode_2',$samplebranch1->{branchcode}); |
309 |
($doreturn, $messages, $iteminformation, $borrower) = AddReturn('barcode_2',$samplebranch1->{branchcode}); |
310 |
is( $messages->{NeedsTransfer}, undef, "AddReturn does not generate a new transfer for return policy when resolving an existing transfer" ); |
310 |
is( $messages->{NeedsTransfer}, undef, "AddReturn does not generate a new transfer for return policy when resolving an existing non-Reserve transfer" ); |
|
|
311 |
|
312 |
# Generate a hold caused transfer which doesn't have a hold i.e. is the hold is cancelled |
313 |
ModItemTransfer($item_id2, $samplebranch2->{branchcode}, $samplebranch1->{branchcode}, "Reserve"); |
314 |
# Fulfill it |
315 |
($doreturn, $messages, $iteminformation, $borrower) = AddReturn('barcode_2',$samplebranch1->{branchcode}); |
316 |
is( $messages->{NeedsTransfer}, $samplebranch2->{branchcode}, "AddReturn generates a new transfer for hold transfer if the hold was cancelled" ); |
311 |
|
317 |
|
312 |
# item3 should not trigger transfer - floating collection |
318 |
# item3 should not trigger transfer - floating collection |
313 |
$query = |
319 |
$query = |
314 |
- |
|
|