Bug 25757: Add item relation to Koha::Item::Transfer

Signed-off-by: Kathleen Milne <kathleen.milne@cne-siar.gov.uk>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Martin Renvoize 2020-06-16 11:36:19 +01:00 committed by Jonathan Druart
parent 165cb84dd8
commit 94056d8df2

View file

@ -33,6 +33,20 @@ Koha::Item::Transfer - Koha Item Transfer Object class
=cut
=head3 item
my $item = $transfer->item;
Returns the associated item for this transfer.
=cut
sub item {
my ($self) = @_;
my $item_rs = $self->_result->itemnumber;
return Koha::Item->_new_from_dbic($item_rs);
}
=head3 type
=cut