|
Lines 564-570
we still expect the item to end up at a final location eventually.
Link Here
|
| 564 |
sub get_transfer { |
564 |
sub get_transfer { |
| 565 |
my ($self) = @_; |
565 |
my ($self) = @_; |
| 566 |
|
566 |
|
| 567 |
return $self->get_transfers->search( {}, { rows => 1 } )->next; |
567 |
my $transfer = $self->_result->branchtransfer; |
|
|
568 |
|
| 569 |
return Koha::Item::Transfers->_new_from_dbic($transfer)->next; |
| 568 |
} |
570 |
} |
| 569 |
|
571 |
|
| 570 |
=head3 get_transfers |
572 |
=head3 get_transfers |
|
Lines 587-598
we still expect the item to end up at a final location eventually.
Link Here
|
| 587 |
sub get_transfers { |
589 |
sub get_transfers { |
| 588 |
my ($self) = @_; |
590 |
my ($self) = @_; |
| 589 |
|
591 |
|
| 590 |
my $transfer_rs = $self->_result->branchtransfers; |
592 |
my $transfer_rs = $self->_result->branchtransfer; |
| 591 |
|
593 |
|
| 592 |
return Koha::Item::Transfers |
594 |
return Koha::Item::Transfers->_new_from_dbic($transfer_rs); |
| 593 |
->_new_from_dbic($transfer_rs) |
|
|
| 594 |
->filter_by_current |
| 595 |
->search( {}, { order_by => [ { -desc => 'datesent' }, { -asc => 'daterequested' } ], } ); |
| 596 |
} |
595 |
} |
| 597 |
|
596 |
|
| 598 |
=head3 last_returned_by |
597 |
=head3 last_returned_by |