Lines 2111-2117
sub AddReturn {
Link Here
|
2111 |
|
2111 |
|
2112 |
# Transfer to returnbranch if Automatic transfer set or append message NeedsTransfer |
2112 |
# Transfer to returnbranch if Automatic transfer set or append message NeedsTransfer |
2113 |
if (!$is_in_rotating_collection && ($doreturn or $messages->{'NotIssued'}) and !$resfound and ($branch ne $returnbranch) and not $messages->{'WrongTransfer'}){ |
2113 |
if (!$is_in_rotating_collection && ($doreturn or $messages->{'NotIssued'}) and !$resfound and ($branch ne $returnbranch) and not $messages->{'WrongTransfer'}){ |
2114 |
my $BranchTransferLimitsType = C4::Context->preference("BranchTransferLimitsType"); |
2114 |
my $BranchTransferLimitsType = C4::Context->preference("BranchTransferLimitsType") eq 'itemtype' ? 'effective_itemtype' : 'ccode'; |
2115 |
if (C4::Context->preference("AutomaticItemReturn" ) or |
2115 |
if (C4::Context->preference("AutomaticItemReturn" ) or |
2116 |
(C4::Context->preference("UseBranchTransferLimits") and |
2116 |
(C4::Context->preference("UseBranchTransferLimits") and |
2117 |
! IsBranchTransferAllowed($branch, $returnbranch, $item->$BranchTransferLimitsType ) |
2117 |
! IsBranchTransferAllowed($branch, $returnbranch, $item->$BranchTransferLimitsType ) |
2118 |
- |
|
|