Lines 2097-2102
sub AddReturn {
Link Here
|
2097 |
} |
2097 |
} |
2098 |
} |
2098 |
} |
2099 |
|
2099 |
|
|
|
2100 |
if ( $item->withdrawn ) { # book has been cancelled |
2101 |
$messages->{'withdrawn'} = 1; |
2102 |
|
2103 |
# In the case where we block return of withdrawn, we should completely block the return |
2104 |
# without updating item statuses, so we exit early |
2105 |
return ( 0, $messages, $issue, ( $patron ? $patron->unblessed : {} )) |
2106 |
if C4::Context->preference("BlockReturnOfWithdrawnItems"); |
2107 |
} |
2108 |
|
2109 |
|
2100 |
# full item data, but no borrowernumber or checkout info (no issue) |
2110 |
# full item data, but no borrowernumber or checkout info (no issue) |
2101 |
my $hbr = Koha::CirculationRules->get_return_branch_policy($item); |
2111 |
my $hbr = Koha::CirculationRules->get_return_branch_policy($item); |
2102 |
# get the proper branch to which to return the item |
2112 |
# get the proper branch to which to return the item |
Lines 2166-2176
sub AddReturn {
Link Here
|
2166 |
return ( $doreturn, $messages, $issue, $patron_unblessed); |
2176 |
return ( $doreturn, $messages, $issue, $patron_unblessed); |
2167 |
} |
2177 |
} |
2168 |
|
2178 |
|
2169 |
if ( $item->withdrawn ) { # book has been cancelled |
|
|
2170 |
$messages->{'withdrawn'} = 1; |
2171 |
$doreturn = 0 if C4::Context->preference("BlockReturnOfWithdrawnItems"); |
2172 |
} |
2173 |
|
2174 |
if ( $item->itemlost and C4::Context->preference("BlockReturnOfLostItems") ) { |
2179 |
if ( $item->itemlost and C4::Context->preference("BlockReturnOfLostItems") ) { |
2175 |
$doreturn = 0; |
2180 |
$doreturn = 0; |
2176 |
} |
2181 |
} |