|
Lines 199-211
if ( $uploadbarcodes && length($uploadbarcodes) > 0 ) {
Link Here
|
| 199 |
} else { |
199 |
} else { |
| 200 |
my $item = Koha::Items->find({barcode => $barcode}); |
200 |
my $item = Koha::Items->find({barcode => $barcode}); |
| 201 |
if ( $item ) { |
201 |
if ( $item ) { |
| 202 |
my $item_unblessed = $item->unblessed; |
|
|
| 203 |
# Modify date last seen for scanned items, remove lost status |
202 |
# Modify date last seen for scanned items, remove lost status |
| 204 |
$item->set({ itemlost => 0, datelastseen => $date })->store; |
203 |
$item->set({ itemlost => 0, datelastseen => $date })->store; |
|
|
204 |
my $item_unblessed = $item->unblessed; |
| 205 |
$moddatecount++; |
205 |
$moddatecount++; |
| 206 |
# update item hash accordingly |
|
|
| 207 |
$item_unblessed->{itemlost} = 0; |
| 208 |
$item_unblessed->{datelastseen} = $date; |
| 209 |
unless ( $dont_checkin ) { |
206 |
unless ( $dont_checkin ) { |
| 210 |
$qonloan->execute($barcode); |
207 |
$qonloan->execute($barcode); |
| 211 |
if ($qonloan->rows){ |
208 |
if ($qonloan->rows){ |
|
Lines 219-225
if ( $uploadbarcodes && length($uploadbarcodes) > 0 ) {
Link Here
|
| 219 |
} |
216 |
} |
| 220 |
} |
217 |
} |
| 221 |
} |
218 |
} |
| 222 |
push @scanned_items, $item; |
219 |
push @scanned_items, $item_unblessed; |
| 223 |
} else { |
220 |
} else { |
| 224 |
push @errorloop, { barcode => $barcode, ERR_BARCODE => 1 }; |
221 |
push @errorloop, { barcode => $barcode, ERR_BARCODE => 1 }; |
| 225 |
} |
222 |
} |
| 226 |
- |
|
|