Lines 2151-2156
sub AddReturn {
Link Here
|
2151 |
|
2151 |
|
2152 |
my $itemnumber = $item->itemnumber; |
2152 |
my $itemnumber = $item->itemnumber; |
2153 |
my $itemtype = $item->effective_itemtype; |
2153 |
my $itemtype = $item->effective_itemtype; |
|
|
2154 |
my $localuse_count = $item->localuse || 0; |
2154 |
|
2155 |
|
2155 |
my $issue = $item->checkout; |
2156 |
my $issue = $item->checkout; |
2156 |
if ( $issue ) { |
2157 |
if ( $issue ) { |
Lines 2166-2171
sub AddReturn {
Link Here
|
2166 |
# No issue, no borrowernumber. ONLY if $doreturn, *might* you have a $borrower later. |
2167 |
# No issue, no borrowernumber. ONLY if $doreturn, *might* you have a $borrower later. |
2167 |
# Record this as a local use, instead of a return, if the RecordLocalUseOnReturn is on |
2168 |
# Record this as a local use, instead of a return, if the RecordLocalUseOnReturn is on |
2168 |
if (C4::Context->preference("RecordLocalUseOnReturn")) { |
2169 |
if (C4::Context->preference("RecordLocalUseOnReturn")) { |
|
|
2170 |
$localuse_count++; |
2171 |
$item->localuse( $localuse_count )->store; |
2169 |
$messages->{'LocalUse'} = 1; |
2172 |
$messages->{'LocalUse'} = 1; |
2170 |
$stat_type = 'localuse'; |
2173 |
$stat_type = 'localuse'; |
2171 |
} |
2174 |
} |