From bfb940df494319447c7085ba7ef50273a5ced57f 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 Content-Type: text/plain; charset=utf-8 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 eb1a773cc8..0eabd3459e 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -109,7 +109,6 @@ BEGIN { TooMany GetTransfers GetTransfersFromTo - updateWrongTransfer CalcDateDue CheckValidBarcode IsBranchTransferAllowed @@ -3641,22 +3640,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