Lines 400-406
sub ModDateLastSeen {
Link Here
|
400 |
my ( $itemnumber, $leave_item_lost, $params ) = @_; |
400 |
my ( $itemnumber, $leave_item_lost, $params ) = @_; |
401 |
|
401 |
|
402 |
my $item = Koha::Items->find($itemnumber); |
402 |
my $item = Koha::Items->find($itemnumber); |
403 |
$item->datelastseen(dt_from_string); |
403 |
$item->datelastseen(dt_from_string->ymd); |
404 |
my $log = $item->itemlost && !$leave_item_lost ? 1 : 0; # If item was lost, record the change to the item |
404 |
my $log = $item->itemlost && !$leave_item_lost ? 1 : 0; # If item was lost, record the change to the item |
405 |
$item->itemlost(0) unless $leave_item_lost; |
405 |
$item->itemlost(0) unless $leave_item_lost; |
406 |
$item->store({ log_action => $log, skip_record_index => $params->{skip_record_index}, skip_holds_queue => $params->{skip_holds_queue} }); |
406 |
$item->store({ log_action => $log, skip_record_index => $params->{skip_record_index}, skip_holds_queue => $params->{skip_holds_queue} }); |
407 |
- |
|
|