<<

NAME

Koha::Booking - Koha Booking object class

API

Class methods

biblio

Returns the related Koha::Biblio object for this booking

patron

Returns the related Koha::Patron object for this booking

pickup_library

Returns the related Koha::Library object for this booking

item

Returns the related Koha::Item object for this Booking

store

Booking specific store method to catch booking clashes and ensure we have an item assigned

We assume that if an item is passed, it's bookability has already been checked. This is to allow overrides in the future.

_assign_item_for_booking

  $self->_assign_item_for_booking;

Used internally in Koha::Booking->store to ensure we have an item assigned for the booking.

get_items_that_can_fill

    my $items = $bookings->get_items_that_can_fill();

Return the list of items that can fulfill this booking.

Items that are not:

  in transit
  lost
  withdrawn
  not for loan
  not already booked

to_api_mapping

This method returns the mapping for representing a Koha::Booking object on the API.

Internal methods

_send_notice

    $self->_send_notice();

Sends appropriate notice to patron.

_type

AUTHORS

Martin Renvoize <martin.renvoize@ptfs-europe.com>

<<