Lines 2547-2552
sub AddReturn {
Link Here
|
2547 |
} |
2547 |
} |
2548 |
|
2548 |
|
2549 |
if ( C4::Context->preference('ClaimReturnedLostValue') ) { |
2549 |
if ( C4::Context->preference('ClaimReturnedLostValue') ) { |
|
|
2550 |
my $autoClaimReturnCheckin = C4::Context->preference('AutoClaimReturnStatusOnCheckin'); |
2551 |
|
2550 |
my $claims = Koha::Checkouts::ReturnClaims->search( |
2552 |
my $claims = Koha::Checkouts::ReturnClaims->search( |
2551 |
{ |
2553 |
{ |
2552 |
itemnumber => $item->id, |
2554 |
itemnumber => $item->id, |
Lines 2555-2563
sub AddReturn {
Link Here
|
2555 |
); |
2557 |
); |
2556 |
|
2558 |
|
2557 |
if ( $claims->count ) { |
2559 |
if ( $claims->count ) { |
|
|
2560 |
if ($autoClaimReturnCheckin) { |
2561 |
my $claim = $claims->next; |
2562 |
|
2563 |
my $patron_id = $patron->borrowernumber; |
2564 |
my $resolution = $autoClaimReturnCheckin; |
2565 |
|
2566 |
$claim->resolve( |
2567 |
{ |
2568 |
resolution => $resolution, |
2569 |
resolved_by => $patron_id, |
2570 |
} |
2571 |
); |
2572 |
$messages->{ClaimAutoResolved} = $claim; |
2573 |
} else { |
2558 |
$messages->{ReturnClaims} = $claims; |
2574 |
$messages->{ReturnClaims} = $claims; |
2559 |
} |
2575 |
} |
2560 |
} |
2576 |
} |
|
|
2577 |
} |
2561 |
|
2578 |
|
2562 |
# Check for bundle status |
2579 |
# Check for bundle status |
2563 |
if ( $item->in_bundle ) { |
2580 |
if ( $item->in_bundle ) { |
2564 |
- |
|
|