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

(-)a/C4/Circulation.pm (-2 / +17 lines)
Lines 2565-2571 sub AddRenewal { Link Here
2565
2565
2566
    # Update the renewal count on the item, and tell zebra to reindex
2566
    # Update the renewal count on the item, and tell zebra to reindex
2567
    $renews = $biblio->{'renewals'} + 1;
2567
    $renews = $biblio->{'renewals'} + 1;
2568
    ModItem({ renewals => $renews, onloan => $datedue->strftime('%Y-%m-%d %H:%M')}, $biblio->{'biblionumber'}, $itemnumber);
2568
2569
    # If item was lost, it has now been found, reverse any list item charges if neccessary.
2570
    if ( $item->{'itemlost'} ) {
2571
        if ( C4::Context->preference('RefundLostItemFeeOnReturn') ) {
2572
            _FixAccountForLostAndReturned( $item->{'itemnumber'}, undef, $item->{'barcode'} );
2573
        }
2574
    }
2575
2576
    ModItem(
2577
        { 
2578
            renewals => $renews, 
2579
            onloan => $datedue->strftime('%Y-%m-%d %H:%M'), 
2580
            itemlost => 0,
2581
        }, 
2582
        $biblio->{'biblionumber'}, 
2583
        $itemnumber
2584
    );
2569
2585
2570
    # Charge a new rental fee, if applicable?
2586
    # Charge a new rental fee, if applicable?
2571
    my ( $charge, $type ) = GetIssuingCharges( $itemnumber, $borrowernumber );
2587
    my ( $charge, $type ) = GetIssuingCharges( $itemnumber, $borrowernumber );
2572
- 

Return to bug 9805