Lines 406-418
subtest do_checkin => sub {
Link Here
|
406 |
is( $patron->checkouts->count, 0, 'Checkin should have been done successfully' ); |
406 |
is( $patron->checkouts->count, 0, 'Checkin should have been done successfully' ); |
407 |
|
407 |
|
408 |
my $result = $ci_transaction->do_checkin( $library2->branchcode, undef ); |
408 |
my $result = $ci_transaction->do_checkin( $library2->branchcode, undef ); |
|
|
409 |
my $transfer = $item->get_transfer; |
409 |
is( $ci_transaction->alert_type, '04', "Checkin of item no issued at another branch succeeds" ); |
410 |
is( $ci_transaction->alert_type, '04', "Checkin of item no issued at another branch succeeds" ); |
410 |
is_deeply( |
411 |
is_deeply( |
411 |
$result, |
412 |
$result, |
412 |
{ |
413 |
{ |
413 |
messages => { |
414 |
messages => { |
414 |
'NotIssued' => $item->barcode, |
415 |
'NotIssued' => $item->barcode, |
415 |
'WasTransfered' => $library->branchcode, |
416 |
'WasTransfered' => $transfer->branchtransfer_id, |
|
|
417 |
'TransferTo' => $library->branchcode, |
416 |
'TransferTrigger' => 'ReturnToHome' |
418 |
'TransferTrigger' => 'ReturnToHome' |
417 |
} |
419 |
} |
418 |
}, |
420 |
}, |
419 |
- |
|
|