Koha::Hold - Koha Hold object class
returns the number of days since a hold was placed, optionally using the calendar
my $age = $hold->age( $use_calendar );
my $hold = $hold->suspend_hold( $suspend_until_dt );
my $hold = $hold->resume();
$hold->delete();
Returns true if hold is a waiting or in transit
Returns true if hold is a waiting hold
Returns true if hold is a in_transit hold
Returns true if hold is a cancelable hold
Holds may be canceled if they not found, or are found and waiting. A hold found but in transit cannot be canceled.
Returns true if hold is waiting and the hold's pickup branch matches the hold item's holding branch
Returns the related Koha::Biblio object for this hold
Returns the related Koha::Item object for this Hold
Returns the related Koha::Library object for this Hold
Returns the related Koha::Patron object for this Hold
my $bool = $hold->is_suspended();
my $cancel_hold = $hold->cancel();
Cancel a hold: - The hold will be moved to the old_reserves table with a priority=0 - The priority of other holds will be updated - The patron will be charge (see ExpireReservesMaxPickUpDelayCharge) if the charge_cancel_fee parameter is set - a CANCEL HOLDS log will be done if the pref HoldsLog is on
my $is_moved = $hold->_move_to_old;
Move a hold to the old_reserve table following the same pattern as Koha::Patron->move_to_deleted
Kyle M Hall <kyle@bywatersolutions.com>
Jonathan Druart <jonathan.druart@bugs.koha-community.org>