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

(-)a/C4/Circulation.pm (+3 lines)
Lines 2144-2149 sub AddReturn { Link Here
2144
2144
2145
    my $itemnumber = $item->itemnumber;
2145
    my $itemnumber = $item->itemnumber;
2146
    my $itemtype = $item->effective_itemtype;
2146
    my $itemtype = $item->effective_itemtype;
2147
    my $localuse_count = $item->localuse || 0;
2147
2148
2148
    my $issue  = $item->checkout;
2149
    my $issue  = $item->checkout;
2149
    if ( $issue ) {
2150
    if ( $issue ) {
Lines 2159-2164 sub AddReturn { Link Here
2159
        # No issue, no borrowernumber.  ONLY if $doreturn, *might* you have a $borrower later.
2160
        # No issue, no borrowernumber.  ONLY if $doreturn, *might* you have a $borrower later.
2160
        # Record this as a local use, instead of a return, if the RecordLocalUseOnReturn is on
2161
        # Record this as a local use, instead of a return, if the RecordLocalUseOnReturn is on
2161
        if (C4::Context->preference("RecordLocalUseOnReturn")) {
2162
        if (C4::Context->preference("RecordLocalUseOnReturn")) {
2163
           $localuse_count++;
2164
           $item->localuse( $localuse_count )->store;
2162
           $messages->{'LocalUse'} = 1;
2165
           $messages->{'LocalUse'} = 1;
2163
           $stat_type = 'localuse';
2166
           $stat_type = 'localuse';
2164
        }
2167
        }
(-)a/circ/circulation.pl (-1 / +5 lines)
Lines 376-381 if (@$barcodes && $op eq 'cud-checkout') { Link Here
376
                BORROWER  => $stats_borrower,
376
                BORROWER  => $stats_borrower,
377
            );
377
            );
378
        }
378
        }
379
380
        #increment items.localuse
381
        my $localuse_count = $item->localuse;
382
        $localuse_count++;
383
        $item->localuse( $localuse_count )->store;
379
    }
384
    }
380
    # Fix for bug 7494: optional checkout-time fallback search for a book
385
    # Fix for bug 7494: optional checkout-time fallback search for a book
381
386
382
- 

Return to bug 16122