Fix for rank being set to zero if a specific item is selected
Signed-off-by: Chris Cormack <crc@liblime.com> Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
6b3baae7f3
commit
653885bdf0
|
|
@ -51,7 +51,7 @@ my $found;
|
|||
|
||||
#if we have an item selectionned, and the pickup branch is the same as the holdingbranch of the document, we force the value $rank and $found .
|
||||
if ($checkitem ne ''){
|
||||
$rank[0] = '0';
|
||||
$rank[0] = '0' unless C4::Context->preference('ReservesNeedReturns');
|
||||
my $item = $checkitem;
|
||||
$item = GetItem($item);
|
||||
if ( $item->{'holdingbranch'} eq $branch ){
|
||||
|
|
|
|||
Loading…
Reference in New Issue