View | Details | Raw Unified | Return to bug 27281
Collapse All | Expand All

(-)a/Koha/Item.pm (-1 / +1 lines)
Lines 511-517 sub get_transfer { Link Here
511
  my $transfer = $item->get_transfers;
511
  my $transfer = $item->get_transfers;
512
512
513
Return the list of outstanding transfers (i.e requested but not yet cancelled
513
Return the list of outstanding transfers (i.e requested but not yet cancelled
514
or recieved).
514
or received).
515
515
516
Note: Transfers are retrieved in a Modified FIFO (First In First Out) order
516
Note: Transfers are retrieved in a Modified FIFO (First In First Out) order
517
whereby the most recently sent, but not received, transfer will be returned
517
whereby the most recently sent, but not received, transfer will be returned
(-)a/t/db_dependent/Koha/Item.t (-2 / +1 lines)
Lines 781-787 subtest 'get_transfers' => sub { Link Here
781
781
782
    $transfer_2->datearrived(\'NOW()')->store;
782
    $transfer_2->datearrived(\'NOW()')->store;
783
    $transfers = $item->get_transfers();
783
    $transfers = $item->get_transfers();
784
    is($transfers->count, 2, 'Once a transfer is recieved, it no longer appears in the list from ->get_transfers()');
784
    is($transfers->count, 2, 'Once a transfer is received, it no longer appears in the list from ->get_transfers()');
785
    $result_1 = $transfers->next;
785
    $result_1 = $transfers->next;
786
    $result_2 = $transfers->next;
786
    $result_2 = $transfers->next;
787
    is( $result_1->branchtransfer_id, $transfer_1->branchtransfer_id, 'Koha::Item->get_transfers returns the other transfers oldest to newest');
787
    is( $result_1->branchtransfer_id, $transfer_1->branchtransfer_id, 'Koha::Item->get_transfers returns the other transfers oldest to newest');
788
- 

Return to bug 27281