Lines 2251-2257
sub AddReturn {
Link Here
|
2251 |
my $limit = Koha::Library::FloatLimits->find( { itemtype => $effective_itemtype, branchcode => $branch } ); |
2251 |
my $limit = Koha::Library::FloatLimits->find( { itemtype => $effective_itemtype, branchcode => $branch } ); |
2252 |
if ($limit) { |
2252 |
if ($limit) { |
2253 |
my $count = Koha::Items->count( { itype => $limit->itemtype } ); |
2253 |
my $count = Koha::Items->count( { itype => $limit->itemtype } ); |
2254 |
if ( $count >= $limit->float_limit ) { |
2254 |
if ( $count > $limit->float_limit ) { |
2255 |
my $transfer_branchcode = Koha::Library::FloatLimits->lowest_ratio_library( $item, $branch ); |
2255 |
my $transfer_branchcode = Koha::Library::FloatLimits->lowest_ratio_library( $item, $branch ); |
2256 |
if ( $transfer_branchcode ne $branch ) { |
2256 |
if ( $transfer_branchcode ne $branch ) { |
2257 |
$returnbranch = $transfer_branchcode; |
2257 |
$returnbranch = $transfer_branchcode; |
2258 |
- |
|
|