use HomeOrHoldingBranch to determine if a return is valid or not

in fact, i'm not 100% sure of this bugfix : I don't see the case where a return should be done directly to homebranch, when the check out has been done at holdingbranch
so maybe we could hardcode 'holdingbranch' instead of using HomeOrHoldingBranch

the patch as written won't break anything existing.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
paul 2008-04-01 16:01:36 +02:00 committed by Joshua Ferraro
parent 32cfac05cf
commit 0bf436a0ea

View file

@ -1230,7 +1230,7 @@ sub AddReturn {
}
# check if the book is in a permanent collection....
my $hbr = $iteminformation->{'homebranch'};
my $hbr = $iteminformation->{C4::Context->preference("HomeOrHoldingBranch")};
my $branches = GetBranches();
if ( $hbr && $branches->{$hbr}->{'PE'} ) {
$messages->{'IsPermanent'} = $hbr;