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

(-)a/C4/Circulation.pm (-1 / +3 lines)
Lines 2127-2132 sub AddReturn { Link Here
2127
2127
2128
    my $itemnumber = $item->itemnumber;
2128
    my $itemnumber = $item->itemnumber;
2129
    my $itemtype = $item->effective_itemtype;
2129
    my $itemtype = $item->effective_itemtype;
2130
    my $localuse_count = $item->localuse;
2130
2131
2131
    my $issue  = $item->checkout;
2132
    my $issue  = $item->checkout;
2132
    if ( $issue ) {
2133
    if ( $issue ) {
Lines 2142-2147 sub AddReturn { Link Here
2142
        # No issue, no borrowernumber.  ONLY if $doreturn, *might* you have a $borrower later.
2143
        # No issue, no borrowernumber.  ONLY if $doreturn, *might* you have a $borrower later.
2143
        # Record this as a local use, instead of a return, if the RecordLocalUseOnReturn is on
2144
        # Record this as a local use, instead of a return, if the RecordLocalUseOnReturn is on
2144
        if (C4::Context->preference("RecordLocalUseOnReturn")) {
2145
        if (C4::Context->preference("RecordLocalUseOnReturn")) {
2146
           $localuse_count++;
2147
           $item->localuse( $localuse_count )->store;
2145
           $messages->{'LocalUse'} = 1;
2148
           $messages->{'LocalUse'} = 1;
2146
           $stat_type = 'localuse';
2149
           $stat_type = 'localuse';
2147
        }
2150
        }
2148
- 

Return to bug 16122