|
Lines 2082-2087
sub AddReturn {
Link Here
|
| 2082 |
} |
2082 |
} |
| 2083 |
} |
2083 |
} |
| 2084 |
|
2084 |
|
|
|
2085 |
if ( $item->withdrawn ) { # book has been cancelled |
| 2086 |
$messages->{'withdrawn'} = 1; |
| 2087 |
$doreturn = 0 if C4::Context->preference("BlockReturnOfWithdrawnItems"); |
| 2088 |
return ( $doreturn, $messages, $issue, ( $patron ? $patron->unblessed : {} )); |
| 2089 |
} |
| 2090 |
|
| 2091 |
|
| 2085 |
# full item data, but no borrowernumber or checkout info (no issue) |
2092 |
# full item data, but no borrowernumber or checkout info (no issue) |
| 2086 |
my $hbr = GetBranchItemRule($item->homebranch, $itemtype)->{'returnbranch'} || "homebranch"; |
2093 |
my $hbr = GetBranchItemRule($item->homebranch, $itemtype)->{'returnbranch'} || "homebranch"; |
| 2087 |
# get the proper branch to which to return the item |
2094 |
# get the proper branch to which to return the item |
|
Lines 2151-2161
sub AddReturn {
Link Here
|
| 2151 |
return ( $doreturn, $messages, $issue, $patron_unblessed); |
2158 |
return ( $doreturn, $messages, $issue, $patron_unblessed); |
| 2152 |
} |
2159 |
} |
| 2153 |
|
2160 |
|
| 2154 |
if ( $item->withdrawn ) { # book has been cancelled |
|
|
| 2155 |
$messages->{'withdrawn'} = 1; |
| 2156 |
$doreturn = 0 if C4::Context->preference("BlockReturnOfWithdrawnItems"); |
| 2157 |
} |
| 2158 |
|
| 2159 |
if ( $item->itemlost and C4::Context->preference("BlockReturnOfLostItems") ) { |
2161 |
if ( $item->itemlost and C4::Context->preference("BlockReturnOfLostItems") ) { |
| 2160 |
$doreturn = 0; |
2162 |
$doreturn = 0; |
| 2161 |
} |
2163 |
} |