Lines 2008-2014
sub AddReturn {
Link Here
|
2008 |
|
2008 |
|
2009 |
# the holdingbranch is updated if the document is returned to another location. |
2009 |
# the holdingbranch is updated if the document is returned to another location. |
2010 |
# this is always done regardless of whether the item was on loan or not |
2010 |
# this is always done regardless of whether the item was on loan or not |
2011 |
my $item_holding_branch = $item->holdingbranch; |
|
|
2012 |
if ($item->holdingbranch ne $branch) { |
2011 |
if ($item->holdingbranch ne $branch) { |
2013 |
$item->holdingbranch($branch)->store; |
2012 |
$item->holdingbranch($branch)->store; |
2014 |
} |
2013 |
} |
Lines 2040-2051
sub AddReturn {
Link Here
|
2040 |
if ( $item->itemlost ) { |
2039 |
if ( $item->itemlost ) { |
2041 |
$messages->{'WasLost'} = 1; |
2040 |
$messages->{'WasLost'} = 1; |
2042 |
unless ( C4::Context->preference("BlockReturnOfLostItems") ) { |
2041 |
unless ( C4::Context->preference("BlockReturnOfLostItems") ) { |
2043 |
my $refunded = $item->set_found( |
|
|
2044 |
{ |
2045 |
holdingbranch => $item_holding_branch, |
2046 |
} |
2047 |
); |
2048 |
|
2049 |
$messages->{'LostItemFeeRefunded'} = $refunded; |
2042 |
$messages->{'LostItemFeeRefunded'} = $refunded; |
2050 |
} |
2043 |
} |
2051 |
} |
2044 |
} |
2052 |
- |
|
|