Lines 414-419
sub last_checkout {
Link Here
|
414 |
return Koha::Old::Checkout->_new_from_dbic( $checkout_rs ); |
414 |
return Koha::Old::Checkout->_new_from_dbic( $checkout_rs ); |
415 |
} |
415 |
} |
416 |
|
416 |
|
|
|
417 |
=head3 loss_checkout |
418 |
|
419 |
my $loss_checkout = $item->loss_checkout; |
420 |
|
421 |
Return the old checkout from which this item was marked as lost |
422 |
|
423 |
=cut |
424 |
|
425 |
sub loss_checkout { |
426 |
my ( $self ) = @_; |
427 |
my $items_lost_issue_rs = $self->_result->items_lost_issue; |
428 |
return unless $items_lost_issue_rs; |
429 |
my $issue_rs = $items_lost_issue_rs->issue; |
430 |
return unless $issue_rs; |
431 |
return Koha::Old::Checkout->_new_from_dbic( $issue_rs ); |
432 |
} |
433 |
|
417 |
=head3 holds |
434 |
=head3 holds |
418 |
|
435 |
|
419 |
my $holds = $item->holds(); |
436 |
my $holds = $item->holds(); |
Lines 1087-1093
Internal function, not exported, called only by Koha::Item->store.
Link Here
|
1087 |
sub _set_found_trigger { |
1104 |
sub _set_found_trigger { |
1088 |
my ( $self, $pre_mod_item ) = @_; |
1105 |
my ( $self, $pre_mod_item ) = @_; |
1089 |
|
1106 |
|
1090 |
## If item was lost, it has now been found, reverse any list item charges if necessary. |
1107 |
# If item was lost, it has now been found |
|
|
1108 |
$self->_result->items_lost_issue->delete; |
1109 |
|
1110 |
# Reverse any lost item charges if necessary. |
1091 |
my $no_refund_after_days = |
1111 |
my $no_refund_after_days = |
1092 |
C4::Context->preference('NoRefundOnLostReturnedItemsAge'); |
1112 |
C4::Context->preference('NoRefundOnLostReturnedItemsAge'); |
1093 |
if ($no_refund_after_days) { |
1113 |
if ($no_refund_after_days) { |