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

(-)a/C4/Circulation.pm (-3 / +2 lines)
Lines 739-745 sub CanBookBeIssued { Link Here
739
    #
739
    #
740
    if ( $borrower->{'category_type'} eq 'X' && (  $item->{barcode}  )) { 
740
    if ( $borrower->{'category_type'} eq 'X' && (  $item->{barcode}  )) { 
741
    	# stats only borrower -- add entry to statistics table, and return issuingimpossible{STATS} = 1  .
741
    	# stats only borrower -- add entry to statistics table, and return issuingimpossible{STATS} = 1  .
742
        &UpdateStats(C4::Context->userenv->{'branch'},'localuse','','',$item->{'itemnumber'},$item->{'itemtype'},$borrower->{'borrowernumber'}, undef, $item->{'ccode'});
742
        &UpdateStats(C4::Context->userenv->{'branch'},'localuse','','',$item->{'itemnumber'},$item->{'itype'},$borrower->{'borrowernumber'}, undef, $item->{'ccode'});
743
        ModDateLastSeen( $item->{'itemnumber'} );
743
        ModDateLastSeen( $item->{'itemnumber'} );
744
        return( { STATS => 1 }, {});
744
        return( { STATS => 1 }, {});
745
    }
745
    }
Lines 1897-1903 sub AddReturn { Link Here
1897
    UpdateStats(
1897
    UpdateStats(
1898
        $branch, $stat_type, '0', '',
1898
        $branch, $stat_type, '0', '',
1899
        $item->{'itemnumber'},
1899
        $item->{'itemnumber'},
1900
        $biblio->{'itemtype'},
1900
        $item->{'itype'},
1901
        $borrowernumber, undef, $item->{'ccode'}
1901
        $borrowernumber, undef, $item->{'ccode'}
1902
    );
1902
    );
1903
1903
1904
- 

Return to bug 9351