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

(-)a/C4/Circulation.pm (+3 lines)
Lines 2152-2157 sub AddReturn { Link Here
2152
2152
2153
    my $itemnumber = $item->itemnumber;
2153
    my $itemnumber = $item->itemnumber;
2154
    my $itemtype = $item->effective_itemtype;
2154
    my $itemtype = $item->effective_itemtype;
2155
    my $localuse_count = $item->localuse || 0;
2155
2156
2156
    my $issue  = $item->checkout;
2157
    my $issue  = $item->checkout;
2157
    if ( $issue ) {
2158
    if ( $issue ) {
Lines 2167-2172 sub AddReturn { Link Here
2167
        # No issue, no borrowernumber.  ONLY if $doreturn, *might* you have a $borrower later.
2168
        # No issue, no borrowernumber.  ONLY if $doreturn, *might* you have a $borrower later.
2168
        # Record this as a local use, instead of a return, if the RecordLocalUseOnReturn is on
2169
        # Record this as a local use, instead of a return, if the RecordLocalUseOnReturn is on
2169
        if (C4::Context->preference("RecordLocalUseOnReturn")) {
2170
        if (C4::Context->preference("RecordLocalUseOnReturn")) {
2171
           $localuse_count++;
2172
           $item->localuse( $localuse_count )->store;
2170
           $messages->{'LocalUse'} = 1;
2173
           $messages->{'LocalUse'} = 1;
2171
           $stat_type = 'localuse';
2174
           $stat_type = 'localuse';
2172
        }
2175
        }
(-)a/circ/circulation.pl (-1 / +5 lines)
Lines 369-374 if (@$barcodes && $op eq 'cud-checkout') { Link Here
369
                BORROWER  => $stats_borrower,
369
                BORROWER  => $stats_borrower,
370
            );
370
            );
371
        }
371
        }
372
373
        #increment items.localuse
374
        my $localuse_count = $item->localuse;
375
        $localuse_count++;
376
        $item->localuse( $localuse_count )->store;
372
    }
377
    }
373
    # Fix for bug 7494: optional checkout-time fallback search for a book
378
    # Fix for bug 7494: optional checkout-time fallback search for a book
374
379
375
- 

Return to bug 16122