Lines 1452-1468
sub AddIssue {
Link Here
|
1452 |
UpdateTotalIssues( $item->{'biblionumber'}, 1 ); |
1452 |
UpdateTotalIssues( $item->{'biblionumber'}, 1 ); |
1453 |
} |
1453 |
} |
1454 |
|
1454 |
|
1455 |
## If item was lost, it has now been found, reverse any list item charges if necessary. |
1455 |
## If item was lost, it has now been found, reverse any list item charges if necessary. |
1456 |
if ( $item->{'itemlost'} ) { |
1456 |
if ( $item->{'itemlost'} ) { |
1457 |
if ( Koha::RefundLostItemFeeRules->should_refund( |
1457 |
if ( |
1458 |
current_branch => C4::Context->userenv->{ branch }, |
1458 |
Koha::RefundLostItemFeeRules->should_refund( |
1459 |
patron_branch => $borrower->{ branchcode }, |
1459 |
{ |
1460 |
item_home_branch => $item->{ homebranch }, |
1460 |
current_branch => C4::Context->userenv->{branch}, |
1461 |
item_holding_branch => $item->{ holdingbranch } |
1461 |
item_home_branch => $item->{homebranch}, |
1462 |
) ) { |
1462 |
item_holding_branch => $item->{holdingbranch} |
1463 |
_FixAccountForLostAndReturned( $item->{'itemnumber'}, undef, $item->{'barcode'} ); |
1463 |
} |
|
|
1464 |
) |
1465 |
) |
1466 |
{ |
1467 |
_FixAccountForLostAndReturned( $item->{'itemnumber'}, undef, |
1468 |
$item->{'barcode'} ); |
1469 |
} |
1464 |
} |
1470 |
} |
1465 |
} |
|
|
1466 |
|
1471 |
|
1467 |
ModItem( |
1472 |
ModItem( |
1468 |
{ |
1473 |
{ |
Lines 2139-2150
sub AddReturn {
Link Here
|
2139 |
$messages->{'WasLost'} = 1; |
2144 |
$messages->{'WasLost'} = 1; |
2140 |
|
2145 |
|
2141 |
if ( $item->{'itemlost'} ) { |
2146 |
if ( $item->{'itemlost'} ) { |
2142 |
if ( Koha::RefundLostItemFeeRules->should_refund( |
2147 |
if ( |
2143 |
current_branch => C4::Context->userenv->{ branch }, |
2148 |
Koha::RefundLostItemFeeRules->should_refund( |
2144 |
patron_branch => $borrower->{ branchcode }, |
2149 |
{ |
2145 |
item_home_branch => $item->{ homebranch }, |
2150 |
current_branch => C4::Context->userenv->{branch}, |
2146 |
item_holding_branch => $item->{ holdingbranch } |
2151 |
item_home_branch => $item->{homebranch}, |
2147 |
) ) { |
2152 |
item_holding_branch => $item->{holdingbranch} |
|
|
2153 |
} |
2154 |
) |
2155 |
) |
2156 |
{ |
2148 |
_FixAccountForLostAndReturned( $item->{'itemnumber'}, $borrowernumber, $barcode ); |
2157 |
_FixAccountForLostAndReturned( $item->{'itemnumber'}, $borrowernumber, $barcode ); |
2149 |
$messages->{'LostItemFeeRefunded'} = 1; |
2158 |
$messages->{'LostItemFeeRefunded'} = 1; |
2150 |
} |
2159 |
} |
2151 |
- |
|
|