From 94df210c415dfac39cb778b6b400449461e04b41 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 24 Aug 2020 09:13:00 -0400 Subject: [PATCH] Bug 25534: (QA follow-up) Update Koha::Hold::cancel POD Signed-off-by: Jonathan Druart --- Koha/Hold.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Koha/Hold.pm b/Koha/Hold.pm index 67e8d53757..360b43e7b5 100644 --- a/Koha/Hold.pm +++ b/Koha/Hold.pm @@ -351,12 +351,18 @@ sub is_suspended { =head3 cancel -my $cancel_hold = $hold->cancel(); +my $cancel_hold = $hold->cancel( + { + [ charge_cancel_fee => 1||0, ] + [ cancellation_reason => $cancellation_reason, ] + } +); 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 +- The canceled hold will have the cancellation reason added to old_reserves.cancellation_reason if one is passed in - a CANCEL HOLDS log will be done if the pref HoldsLog is on =cut -- 2.39.5