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

(-)a/circ/returns.pl (-11 / +12 lines)
Lines 642-657 $template->param( Link Here
642
642
643
$itemnumber = GetItemnumberFromBarcode( $barcode );
643
$itemnumber = GetItemnumberFromBarcode( $barcode );
644
if ( $itemnumber ) {
644
if ( $itemnumber ) {
645
   my ( $holdingBranch, $collectionBranch ) = GetCollectionItemBranches( $itemnumber );
645
    my ( $holdingBranch, $collectionBranch ) = GetCollectionItemBranches( $itemnumber );
646
    $holdingBranch //= '';
646
    if ( $holdingBranch and $collectionBranch ) {
647
    $collectionBranch //= $returnbranch;
647
        $holdingBranch //= '';
648
    if ( ! ( $holdingBranch eq $collectionBranch ) ) {
648
        $collectionBranch //= $returnbranch;
649
        $template->param(
649
        if ( ! ( $holdingBranch eq $collectionBranch ) ) {
650
          collectionItemNeedsTransferred => 1,
650
            $template->param(
651
          collectionBranchName => GetBranchName($collectionBranch),
651
              collectionItemNeedsTransferred => 1,
652
          collectionBranch => $collectionBranch,
652
              collectionBranchName => GetBranchName($collectionBranch),
653
          itemnumber => $itemnumber,
653
              collectionBranch => $collectionBranch,
654
        );
654
              itemnumber => $itemnumber,
655
            );
656
        }
655
    }
657
    }
656
}
658
}
657
659
658
- 

Return to bug 16570