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

(-)a/C4/Circulation.pm (-2 / +1 lines)
Lines 2213-2219 sub AddReturn { Link Here
2213
        my $limit = Koha::Library::FloatLimits->find( { itemtype => $effective_itemtype, branchcode => $branch } );
2213
        my $limit = Koha::Library::FloatLimits->find( { itemtype => $effective_itemtype, branchcode => $branch } );
2214
        if ($limit) {
2214
        if ($limit) {
2215
            my $count = Koha::Items->count( { itype => $limit->itemtype } );
2215
            my $count = Koha::Items->count( { itype => $limit->itemtype } );
2216
            if ( $count >= $limit->float_limit ) {
2216
            if ( $count > $limit->float_limit ) {
2217
                my $transfer_branchcode = Koha::Library::FloatLimits->lowest_ratio_library( $item, $branch );
2217
                my $transfer_branchcode = Koha::Library::FloatLimits->lowest_ratio_library( $item, $branch );
2218
                if ( $transfer_branchcode ne $branch ) {
2218
                if ( $transfer_branchcode ne $branch ) {
2219
                    $returnbranch     = $transfer_branchcode;
2219
                    $returnbranch     = $transfer_branchcode;
2220
- 

Return to bug 28530