From 8c09123197bc4bf8997ba4cd1b727c80eef9077e Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 22 Jan 2021 12:56:02 +0000 Subject: [PATCH] Bug 25552: (QA follow-up) Improve claim_returned POD The POD for the Koha::Checkout->claim_returned method was somewhat lacking; This patch attempts to explain what the code appears to achieve. Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart --- Koha/Checkout.pm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Koha/Checkout.pm b/Koha/Checkout.pm index 6af0179fe5..04e339136d 100644 --- a/Koha/Checkout.pm +++ b/Koha/Checkout.pm @@ -145,7 +145,17 @@ sub to_api_mapping { =head3 claim_returned -my $return_claim = $checkout->claim_returned(); + my $return_claim = $checkout->claim_returned(); + +This method sets the checkout as claimed return. It will: + +1. Add a new row to the `return_claims` table +2. Set the item as lost using the 'ClaimReturnedLostValue' +3. Charge a fee depending on the value of ClaimReturnedChargeFee +3a. If set to charge, then accruing overdues will be halted +3b. If set to charge, then any existing transfers will be cancelled + and the holding branch will be set back to 'frombranch'. +4. The issue will be marked as returned as per the 'MarkLostItemsAsReturned' preference =cut -- 2.39.5