Koha::Booking - Koha Booking object class
$booking->set_itemtype_filter($itemtype_id);
Sets a transient itemtype filter for item selection. This is used when creating "any item" bookings to filter items by type before optimal selection. This value is not persisted to the database.
Returns the related Koha::Biblio object for this booking
Returns the related Koha::Patron object for this booking
Returns the related Koha::Library object for this booking
Returns the related Koha::Item object for this Booking
Returns the related Koha::Checkout object for this booking, if any
Returns the related Koha::Old::Checkout object for this booking, if any
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.
$self->_assign_item_for_booking;
Used internally in Koha::Booking->store to ensure we have an item assigned for the booking.
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
This method returns the mapping for representing a Koha::Booking object on the API.
my $item_id = $self->_select_optimal_item($available_items);
Selects the optimal item from a set of available items by choosing the item with the longest future availability after the booking ends.
This maximizes future booking opportunities by preserving items with shorter future availability for bookings that specifically need them.
$self->_send_notice();
Sends appropriate notice to patron.
Martin Renvoize <martin.renvoize@ptfs-europe.com>