Lines 896-903
sub CanBookBeIssued {
Link Here
|
896 |
if ( C4::Context->preference("IndependentBranches") ) { |
896 |
if ( C4::Context->preference("IndependentBranches") ) { |
897 |
my $userenv = C4::Context->userenv; |
897 |
my $userenv = C4::Context->userenv; |
898 |
if ( ($userenv) && ( $userenv->{flags} % 2 != 1 ) ) { |
898 |
if ( ($userenv) && ( $userenv->{flags} % 2 != 1 ) ) { |
899 |
$issuingimpossible{ITEMNOTSAMEBRANCH} = 1 |
899 |
if ( $item->{C4::Context->preference("HomeOrHoldingBranch")} ne $userenv->{branch} ){ |
900 |
if ( $item->{C4::Context->preference("HomeOrHoldingBranch")} ne $userenv->{branch} ); |
900 |
$issuingimpossible{ITEMNOTSAMEBRANCH} = 1; |
|
|
901 |
$issuingimpossible{'itemhomebranch'} = $item->{C4::Context->preference("HomeOrHoldingBranch")}; |
902 |
} |
901 |
$needsconfirmation{BORRNOTSAMEBRANCH} = GetBranchName( $borrower->{'branchcode'} ) |
903 |
$needsconfirmation{BORRNOTSAMEBRANCH} = GetBranchName( $borrower->{'branchcode'} ) |
902 |
if ( $borrower->{'branchcode'} ne $userenv->{branch} ); |
904 |
if ( $borrower->{'branchcode'} ne $userenv->{branch} ); |
903 |
} |
905 |
} |