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