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

(-)a/C4/Circulation.pm (-2 / +1 lines)
Lines 2202-2208 sub AddReturn { Link Here
2202
        my $limit = Koha::Library::FloatLimits->find( { itemtype => $effective_itemtype, branchcode => $branch } );
2202
        my $limit = Koha::Library::FloatLimits->find( { itemtype => $effective_itemtype, branchcode => $branch } );
2203
        if ($limit) {
2203
        if ($limit) {
2204
            my $count = Koha::Items->count( { itype => $limit->itemtype } );
2204
            my $count = Koha::Items->count( { itype => $limit->itemtype } );
2205
            if ( $count >= $limit->float_limit ) {
2205
            if ( $count > $limit->float_limit ) {
2206
                my $transfer_branchcode = Koha::Library::FloatLimits->lowest_ratio_library( $item, $branch );
2206
                my $transfer_branchcode = Koha::Library::FloatLimits->lowest_ratio_library( $item, $branch );
2207
                if ( $transfer_branchcode ne $branch ) {
2207
                if ( $transfer_branchcode ne $branch ) {
2208
                    $returnbranch     = $transfer_branchcode;
2208
                    $returnbranch     = $transfer_branchcode;
2209
- 

Return to bug 28530