From 8e7fd555b318b2b74089470528f22fd19e5df0cd 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 9e5c08000d..3201ffd545 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -108,7 +108,6 @@ BEGIN { TooMany GetTransfers GetTransfersFromTo - updateWrongTransfer CalcDateDue CheckValidBarcode IsBranchTransferAllowed @@ -3527,22 +3526,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.20.1