<<

NAME

Koha::Item::Transfer - Koha Item Transfer Object class

API

Class Methods

item

  my $item = $transfer->item;

Returns the associated item for this transfer.

from_library

  my $from_library = $transfer->from_library;

Returns the associated from_library for this transfer.

to_library

  my $to_library = $transfer->to_library;

Returns the associated to_library for this transfer.

transit

    $transfer->transit({ [ skip_record_index => 0|1 ] });

Set the transfer as in transit by updating the datesent time.

Also, update date last seen and ensure item holdingbranch is correctly set.

An optional skip_record_index parameter can be passed to avoid triggering reindex.

in_transit

Boolean returning whether the transfer is in transit or waiting

receive

Receive the transfer by setting the datearrived time.

cancel

  $transfer->cancel({ reason => $reason, [force => 1]});

Cancel the transfer by setting the datecancelled time and recording the reason.

strings_map

Returns a map of column name to string representations including the string.

type

<<