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:
parent
165cb84dd8
commit
94056d8df2
1 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue