Lines 645-662
sub ModItemTransfer {
Link Here
|
645 |
|
645 |
|
646 |
=head2 ModDateLastSeen |
646 |
=head2 ModDateLastSeen |
647 |
|
647 |
|
648 |
ModDateLastSeen($itemnum); |
648 |
ModDateLastSeen( $itemnumber, $leave_item_lost ); |
649 |
|
649 |
|
650 |
Mark item as seen. Is called when an item is issued, returned or manually marked during inventory/stocktaking. |
650 |
Mark item as seen. Is called when an item is issued, returned or manually marked during inventory/stocktaking. |
651 |
C<$itemnum> is the item number |
651 |
C<$itemnumber> is the item number |
|
|
652 |
C<$leave_item_lost> determines if a lost item will be found or remain lost |
652 |
|
653 |
|
653 |
=cut |
654 |
=cut |
654 |
|
655 |
|
655 |
sub ModDateLastSeen { |
656 |
sub ModDateLastSeen { |
656 |
my ($itemnumber) = @_; |
657 |
my ( $itemnumber, $leave_item_lost ) = @_; |
657 |
|
658 |
|
658 |
my $today = output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }); |
659 |
my $today = output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }); |
659 |
ModItem( { itemlost => 0, datelastseen => $today }, undef, $itemnumber, { log_action => 0 } ); |
660 |
|
|
|
661 |
my $params; |
662 |
$params->{datelastseen} = $today; |
663 |
$params->{itemlost} = 0 unless $leave_item_lost; |
664 |
|
665 |
ModItem( $params, undef, $itemnumber, { log_action => 0 } ); |
660 |
} |
666 |
} |
661 |
|
667 |
|
662 |
=head2 DelItem |
668 |
=head2 DelItem |