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

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

Return to bug 28530