From d122ea547025b0aa8f0be19603663590f629f74d Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 13 Aug 2020 10:26:37 +0100 Subject: [PATCH] Bug 18501: (QA follow-up) Add POD for Koha::Item->set_found This patch adds a simple POD entry for the new 'set_found' method introduced in this patchset. Signed-off-by: Martin Renvoize --- Koha/Item.pm | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Koha/Item.pm b/Koha/Item.pm index 624392deb1..2df7e17d53 100644 --- a/Koha/Item.pm +++ b/Koha/Item.pm @@ -762,12 +762,29 @@ sub renewal_branchcode { return $branchcode; } +=head3 set_found + + my $lost_item_refunded; + if ( $item->itemlost ) { + $lost_item_refunded = $item->set_found; + } + +Function to set a previously lost item to found. + +The action will update the item details and trigger +any refunds that may result from the items return. + +Returns a boolean denoting whether the action triggered +a refund or not. + +=cut + sub set_found { my ($self, $params) = @_; my $holdingbranch = $params->{holdingbranch} || $self->holdingbranch; - ## If item was lost, it has now been found, reverse any list item charges if necessary. + ## If item was lost, it has now been found, reverse any lost item charges if necessary. my $refund = 1; my $no_refund_after_days = C4::Context->preference('NoRefundOnLostReturnedItemsAge'); -- 2.20.1