Lines 2035-2041
sub AddReturn {
Link Here
|
2035 |
|
2035 |
|
2036 |
# the holdingbranch is updated if the document is returned to another location. |
2036 |
# the holdingbranch is updated if the document is returned to another location. |
2037 |
# this is always done regardless of whether the item was on loan or not |
2037 |
# this is always done regardless of whether the item was on loan or not |
2038 |
my $item_holding_branch = $item->holdingbranch; |
|
|
2039 |
if ($item->holdingbranch ne $branch) { |
2038 |
if ($item->holdingbranch ne $branch) { |
2040 |
$item->holdingbranch($branch)->store; |
2039 |
$item->holdingbranch($branch)->store; |
2041 |
} |
2040 |
} |
Lines 2065-2076
sub AddReturn {
Link Here
|
2065 |
if ( $item->itemlost ) { |
2064 |
if ( $item->itemlost ) { |
2066 |
$messages->{'WasLost'} = 1; |
2065 |
$messages->{'WasLost'} = 1; |
2067 |
unless ( C4::Context->preference("BlockReturnOfLostItems") ) { |
2066 |
unless ( C4::Context->preference("BlockReturnOfLostItems") ) { |
2068 |
my $refunded = $item->set_found( |
|
|
2069 |
{ |
2070 |
holdingbranch => $item_holding_branch, |
2071 |
} |
2072 |
); |
2073 |
|
2074 |
$messages->{'LostItemFeeRefunded'} = $refunded; |
2067 |
$messages->{'LostItemFeeRefunded'} = $refunded; |
2075 |
} |
2068 |
} |
2076 |
} |
2069 |
} |
2077 |
- |
|
|