View | Details | Raw Unified | Return to bug 28530
Collapse All | Expand All

(-)a/C4/Circulation.pm (-2 / +1 lines)
Lines 2254-2260 sub AddReturn { Link Here
2254
        my $limit = Koha::Library::FloatLimits->find( { itemtype => $effective_itemtype, branchcode => $branch } );
2254
        my $limit = Koha::Library::FloatLimits->find( { itemtype => $effective_itemtype, branchcode => $branch } );
2255
        if ($limit) {
2255
        if ($limit) {
2256
            my $count = Koha::Items->count( { itype => $limit->itemtype } );
2256
            my $count = Koha::Items->count( { itype => $limit->itemtype } );
2257
            if ( $count >= $limit->float_limit ) {
2257
            if ( $count > $limit->float_limit ) {
2258
                my $transfer_branchcode = Koha::Library::FloatLimits->lowest_ratio_library( $item, $branch );
2258
                my $transfer_branchcode = Koha::Library::FloatLimits->lowest_ratio_library( $item, $branch );
2259
                if ( $transfer_branchcode ne $branch ) {
2259
                if ( $transfer_branchcode ne $branch ) {
2260
                    $returnbranch     = $transfer_branchcode;
2260
                    $returnbranch     = $transfer_branchcode;
2261
- 

Return to bug 28530