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.

Signed-off-by: Kathleen Milne <kathleen.milne@cne-siar.gov.uk>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Martin Renvoize 2020-10-06 14:13:47 +01:00 committed by Jonathan Druart
parent 2ac337b4e7
commit e1ef7571c0

View file

@ -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(
{