Lines 60-65
use Koha::Account::Offsets;
Link Here
|
60 |
use Koha::Config::SysPrefs; |
60 |
use Koha::Config::SysPrefs; |
61 |
use Koha::Charges::Fees; |
61 |
use Koha::Charges::Fees; |
62 |
use Koha::Util::SystemPreferences; |
62 |
use Koha::Util::SystemPreferences; |
|
|
63 |
use Koha::Checkouts::ReturnClaims; |
63 |
use Carp; |
64 |
use Carp; |
64 |
use List::MoreUtils qw( uniq any ); |
65 |
use List::MoreUtils qw( uniq any ); |
65 |
use Scalar::Util qw( looks_like_number ); |
66 |
use Scalar::Util qw( looks_like_number ); |
Lines 2121-2126
sub AddReturn {
Link Here
|
2121 |
} |
2122 |
} |
2122 |
} |
2123 |
} |
2123 |
|
2124 |
|
|
|
2125 |
if ( C4::Context->preference('ClaimReturnedLostValue') ) { |
2126 |
my $claims = Koha::Checkouts::ReturnClaims->search( |
2127 |
{ |
2128 |
itemnumber => $item->id, |
2129 |
resolution => undef, |
2130 |
} |
2131 |
); |
2132 |
|
2133 |
if ( $claims->count ) { |
2134 |
$messages->{ReturnClaims} = $claims; |
2135 |
} |
2136 |
} |
2137 |
|
2124 |
return ( $doreturn, $messages, $issue, ( $patron ? $patron->unblessed : {} )); |
2138 |
return ( $doreturn, $messages, $issue, ( $patron ? $patron->unblessed : {} )); |
2125 |
} |
2139 |
} |
2126 |
|
2140 |
|