|
Lines 830-836
sub CanBookBeIssued {
Link Here
|
| 830 |
#increment items.localuse |
830 |
#increment items.localuse |
| 831 |
my $localuse_count = $item_object->localuse; |
831 |
my $localuse_count = $item_object->localuse; |
| 832 |
$localuse_count++; |
832 |
$localuse_count++; |
| 833 |
$item_object->localuse( $localuse_count )->store; |
833 |
$item_object->localuse($localuse_count)->store; |
| 834 |
|
834 |
|
| 835 |
ModDateLastSeen( $item_object->itemnumber ); # FIXME Move to Koha::Item |
835 |
ModDateLastSeen( $item_object->itemnumber ); # FIXME Move to Koha::Item |
| 836 |
return( { STATS => 1 }, {}); |
836 |
return( { STATS => 1 }, {}); |
|
Lines 2148-2158
sub AddReturn {
Link Here
|
| 2148 |
$doreturn = 0; |
2148 |
$doreturn = 0; |
| 2149 |
# No issue, no borrowernumber. ONLY if $doreturn, *might* you have a $borrower later. |
2149 |
# No issue, no borrowernumber. ONLY if $doreturn, *might* you have a $borrower later. |
| 2150 |
# Record this as a local use, instead of a return, if the RecordLocalUseOnReturn is on |
2150 |
# Record this as a local use, instead of a return, if the RecordLocalUseOnReturn is on |
| 2151 |
if (C4::Context->preference("RecordLocalUseOnReturn")) { |
2151 |
if ( C4::Context->preference("RecordLocalUseOnReturn") ) { |
| 2152 |
$localuse_count++; |
2152 |
$localuse_count++; |
| 2153 |
$item->localuse( $localuse_count )->store; |
2153 |
$item->localuse($localuse_count)->store; |
| 2154 |
$messages->{'LocalUse'} = 1; |
2154 |
$messages->{'LocalUse'} = 1; |
| 2155 |
$stat_type = 'localuse'; |
2155 |
$stat_type = 'localuse'; |
| 2156 |
} |
2156 |
} |
| 2157 |
} |
2157 |
} |
| 2158 |
|
2158 |
|