View | Details | Raw Unified | Return to bug 6004
Collapse All | Expand All

(-)a/C4/Circulation.pm (-2 / +1 lines)
Lines 1669-1675 sub AddReturn { Link Here
1669
    #adding message if holdingbranch is non equal a userenv branch to return the document to homebranch
1669
    #adding message if holdingbranch is non equal a userenv branch to return the document to homebranch
1670
    #we check, if we don't have reserv or transfert for this document, if not, return it to homebranch .
1670
    #we check, if we don't have reserv or transfert for this document, if not, return it to homebranch .
1671
1671
1672
    if ($doreturn and ($branch ne $hbr) and not $messages->{'WrongTransfer'} and ($validTransfert ne 1) ){
1672
    if (($doreturn or $messages->{'NotIssued'}) and !$resfound and ($branch ne $hbr) and not $messages->{'WrongTransfer'}){
1673
        if ( C4::Context->preference("AutomaticItemReturn"    ) or
1673
        if ( C4::Context->preference("AutomaticItemReturn"    ) or
1674
            (C4::Context->preference("UseBranchTransferLimits") and
1674
            (C4::Context->preference("UseBranchTransferLimits") and
1675
             ! IsBranchTransferAllowed($branch, $hbr, $item->{C4::Context->preference("BranchTransferLimitsType")} )
1675
             ! IsBranchTransferAllowed($branch, $hbr, $item->{C4::Context->preference("BranchTransferLimitsType")} )
1676
- 

Return to bug 6004