Lines 2089-2094
sub AddReturn {
Link Here
|
2089 |
|
2089 |
|
2090 |
# the holdingbranch is updated if the document is returned to another location. |
2090 |
# the holdingbranch is updated if the document is returned to another location. |
2091 |
# this is always done regardless of whether the item was on loan or not |
2091 |
# this is always done regardless of whether the item was on loan or not |
|
|
2092 |
my $item_holding_branch = $item->{ holdingbranch }; |
2092 |
if ($item->{'holdingbranch'} ne $branch) { |
2093 |
if ($item->{'holdingbranch'} ne $branch) { |
2093 |
UpdateHoldingbranch($branch, $item->{'itemnumber'}); |
2094 |
UpdateHoldingbranch($branch, $item->{'itemnumber'}); |
2094 |
$item->{'holdingbranch'} = $branch; # update item data holdingbranch too |
2095 |
$item->{'holdingbranch'} = $branch; # update item data holdingbranch too |
Lines 2128-2134
sub AddReturn {
Link Here
|
2128 |
{ |
2129 |
{ |
2129 |
current_branch => C4::Context->userenv->{branch}, |
2130 |
current_branch => C4::Context->userenv->{branch}, |
2130 |
item_home_branch => $item->{homebranch}, |
2131 |
item_home_branch => $item->{homebranch}, |
2131 |
item_holding_branch => $item->{holdingbranch} |
2132 |
item_holding_branch => $item_holding_branch |
2132 |
} |
2133 |
} |
2133 |
) |
2134 |
) |
2134 |
) |
2135 |
) |
2135 |
- |
|
|