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

(-)a/C4/Circulation.pm (-2 / +17 lines)
Lines 2927-2933 sub AddRenewal { Link Here
2927
2927
2928
    # Update the renewal count on the item, and tell zebra to reindex
2928
    # Update the renewal count on the item, and tell zebra to reindex
2929
    $renews = $biblio->{'renewals'} + 1;
2929
    $renews = $biblio->{'renewals'} + 1;
2930
    ModItem({ renewals => $renews, onloan => $datedue->strftime('%Y-%m-%d %H:%M')}, $biblio->{'biblionumber'}, $itemnumber);
2930
2931
    # If item was lost, it has now been found, reverse any list item charges if neccessary.
2932
    if ( $item->{'itemlost'} ) {
2933
        if ( C4::Context->preference('RefundLostItemFeeOnReturn') ) {
2934
            _FixAccountForLostAndReturned( $item->{'itemnumber'}, undef, $item->{'barcode'} );
2935
        }
2936
    }
2937
2938
    ModItem(
2939
        {
2940
            renewals => $renews,
2941
            onloan => $datedue->strftime('%Y-%m-%d %H:%M'),
2942
            itemlost => 0,
2943
        },
2944
        $biblio->{'biblionumber'},
2945
        $itemnumber
2946
    );
2931
2947
2932
    # Charge a new rental fee, if applicable?
2948
    # Charge a new rental fee, if applicable?
2933
    my ( $charge, $type ) = GetIssuingCharges( $itemnumber, $borrowernumber );
2949
    my ( $charge, $type ) = GetIssuingCharges( $itemnumber, $borrowernumber );
2934
- 

Return to bug 9805