From 1e1f62a4d7d418ed00b9d0fde8ef47da664c3bbf Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 6 Oct 2020 14:13:47 +0100 Subject: [PATCH] Bug 24446: Prioritize RotatingCollection transfer over StockRotationAdvance MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch prioritizes the RotatingCollection transfer type over the StockRotationAdvance transfers allowing us to queue up a our transfer behind it. Signed-off-by: Kathleen Milne Signed-off-by: Joonas Kylmälä --- Koha/StockRotationItem.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Koha/StockRotationItem.pm b/Koha/StockRotationItem.pm index 944746e5ec..a3e49a00c7 100644 --- a/Koha/StockRotationItem.pm +++ b/Koha/StockRotationItem.pm @@ -245,7 +245,8 @@ sub advance { my $exception = $_; my $found_transfer = $_->transfer; if ( $found_transfer->in_transit - || $found_transfer->reason eq 'Reserve' ) + || $found_transfer->reason eq 'Reserve' + || $found_transfer->reason eq 'RotatingCollection' ) { return $item->request_transfer( { -- 2.20.1