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