From 4c2d975c1ed9bbf7ee372958ae943c97405771a1 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 This patch prioritizes the RotatingCollection transfer type over the StockRotationAdvance transfers allowing us to queue up a our transfer behind it. --- Koha/StockRotationItem.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Koha/StockRotationItem.pm b/Koha/StockRotationItem.pm index 2ac3129084..7db2ab1eb2 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