|
Lines 324-330
subtest do_checkin => sub {
Link Here
|
| 324 |
|
324 |
|
| 325 |
my $result = $ci_transaction->do_checkin($library2->branchcode, undef); |
325 |
my $result = $ci_transaction->do_checkin($library2->branchcode, undef); |
| 326 |
is($ci_transaction->alert_type,'04',"Checkin of item no issued at another branch succeeds"); |
326 |
is($ci_transaction->alert_type,'04',"Checkin of item no issued at another branch succeeds"); |
| 327 |
is_deeply($result,{ messages => { 'NotIssued' => $item->barcode, 'WasTransfered' => 1 } },"Messages show not issued and transferred"); |
327 |
is_deeply( |
|
|
328 |
$result, |
| 329 |
{ |
| 330 |
messages => { |
| 331 |
'NotIssued' => $item->barcode, |
| 332 |
'WasTransfered' => $library->branchcode, |
| 333 |
'TransferTrigger' => 'ReturnToHome' |
| 334 |
} |
| 335 |
}, |
| 336 |
"Messages show not issued and transferred" |
| 337 |
); |
| 328 |
is( $ci_transaction->item->destination_loc,$library->branchcode,"Item destination correctly set"); |
338 |
is( $ci_transaction->item->destination_loc,$library->branchcode,"Item destination correctly set"); |
| 329 |
|
339 |
|
| 330 |
subtest 'Checkin an in transit item' => sub { |
340 |
subtest 'Checkin an in transit item' => sub { |
| 331 |
- |
|
|