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

(-)a/C4/Circulation.pm (-6 / +5 lines)
Lines 1808-1824 sub AddReturn { Link Here
1808
    my $stat_type = 'return';
1808
    my $stat_type = 'return';
1809
1809
1810
    # get information on item
1810
    # get information on item
1811
    my $item       = GetItem( undef, $barcode )
1811
    my $item = GetItem( undef, $barcode );
1812
        or die "GetItem( undef, $barcode ) failed";
1812
    unless ($item) {
1813
        return ( 0, { BadBarcode => $barcode } );    # no barcode means no item or borrower.  bail out.
1814
    }
1815
1813
    my $itemnumber = $item->{ itemnumber };
1816
    my $itemnumber = $item->{ itemnumber };
1814
    my $biblio = GetBiblioData( $item->{ biblionumber } );
1817
    my $biblio = GetBiblioData( $item->{ biblionumber } );
1815
    my $itemtype   = ( C4::Context->preference("item-level_itypes") )
1818
    my $itemtype   = ( C4::Context->preference("item-level_itypes") )
1816
                        ? $item->{ itype }
1819
                        ? $item->{ itype }
1817
                        : $biblio->{ itemtype };
1820
                        : $biblio->{ itemtype };
1818
1821
1819
    unless ($itemnumber) {
1820
        return (0, { BadBarcode => $barcode }); # no barcode means no item or borrower.  bail out.
1821
    }
1822
    my $issue  = GetItemIssue($itemnumber);
1822
    my $issue  = GetItemIssue($itemnumber);
1823
    if ($issue and $issue->{borrowernumber}) {
1823
    if ($issue and $issue->{borrowernumber}) {
1824
        $borrower = C4::Members::GetMemberDetails($issue->{borrowernumber})
1824
        $borrower = C4::Members::GetMemberDetails($issue->{borrowernumber})
1825
- 

Return to bug 14598