|
Lines 2094-2099
sub AddReturn {
Link Here
|
| 2094 |
} |
2094 |
} |
| 2095 |
} |
2095 |
} |
| 2096 |
|
2096 |
|
|
|
2097 |
if ( $item->withdrawn ) { # book has been cancelled |
| 2098 |
$messages->{'withdrawn'} = 1; |
| 2099 |
$doreturn = 0 if C4::Context->preference("BlockReturnOfWithdrawnItems"); |
| 2100 |
return ( $doreturn, $messages, $issue, ( $patron ? $patron->unblessed : {} )); |
| 2101 |
} |
| 2102 |
|
| 2103 |
|
| 2097 |
# full item data, but no borrowernumber or checkout info (no issue) |
2104 |
# full item data, but no borrowernumber or checkout info (no issue) |
| 2098 |
my $hbr = GetBranchItemRule($item->homebranch, $itemtype)->{'returnbranch'} || "homebranch"; |
2105 |
my $hbr = GetBranchItemRule($item->homebranch, $itemtype)->{'returnbranch'} || "homebranch"; |
| 2099 |
# get the proper branch to which to return the item |
2106 |
# get the proper branch to which to return the item |
|
Lines 2163-2173
sub AddReturn {
Link Here
|
| 2163 |
return ( $doreturn, $messages, $issue, $patron_unblessed); |
2170 |
return ( $doreturn, $messages, $issue, $patron_unblessed); |
| 2164 |
} |
2171 |
} |
| 2165 |
|
2172 |
|
| 2166 |
if ( $item->withdrawn ) { # book has been cancelled |
|
|
| 2167 |
$messages->{'withdrawn'} = 1; |
| 2168 |
$doreturn = 0 if C4::Context->preference("BlockReturnOfWithdrawnItems"); |
| 2169 |
} |
| 2170 |
|
| 2171 |
if ( $item->itemlost and C4::Context->preference("BlockReturnOfLostItems") ) { |
2173 |
if ( $item->itemlost and C4::Context->preference("BlockReturnOfLostItems") ) { |
| 2172 |
$doreturn = 0; |
2174 |
$doreturn = 0; |
| 2173 |
} |
2175 |
} |