From 15b7950be96cceb0779515d13c830883834ce400 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 1 Feb 2022 19:27:06 +0000 Subject: [PATCH] Bug 28294: Remove updateWrongTransfer method This patch removes the updateWrongTransfer method entirely from C4/Circulation.pm. Test plan 1/ Confirm that there are no longer any mentions of updateWrongTransfer in the codebase. --- C4/Circulation.pm | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index ba111a44dd6..2ad06efb720 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -107,7 +107,6 @@ BEGIN { transferbook TooMany GetTransfersFromTo - updateWrongTransfer CalcDateDue CheckValidBarcode IsBranchTransferAllowed @@ -3806,22 +3805,6 @@ sub SendCirculationAlert { return; } -=head2 updateWrongTransfer - - $items = updateWrongTransfer($itemNumber,$borrowernumber,$waitingAtLibrary,$FromLibrary); - -This function validate the line of brachtransfer but with the wrong destination (mistake from a librarian ...), and create a new line in branchtransfer from the actual library to the original library of reservation - -=cut - -sub updateWrongTransfer { - my ( $itemNumber,$waitingAtLibrary,$FromLibrary ) = @_; - - my $transfer = Koha::Items->find($itemNumber)->get_transfer; - my $new_transfer = $transfer->remedy(); - return $new_transfer; -} - =head2 CalcDateDue $newdatedue = CalcDateDue($startdate,$itemtype,$branchcode,$borrower); -- 2.43.0