Lines 346-351
if ($barcode) {
Link Here
|
346 |
$template->param( 'confirm_items_bundle_returned' => 1 ) |
346 |
$template->param( 'confirm_items_bundle_returned' => 1 ) |
347 |
if $query->param('confirm_items_bundle_return'); |
347 |
if $query->param('confirm_items_bundle_return'); |
348 |
|
348 |
|
|
|
349 |
# is there a waiting hold for the item, for which cancellation |
350 |
# has been requested? |
351 |
my $waiting_holds_to_be_cancelled = |
352 |
Koha::Holds->waiting->search( { itemnumber => $item->id } ) |
353 |
->filter_by_has_cancellation_requests; |
354 |
while ( my $hold = $waiting_holds_to_be_cancelled->next ) { |
355 |
$hold->cancel; |
356 |
} |
357 |
|
349 |
# do the return |
358 |
# do the return |
350 |
( $returned, $messages, $issue, $borrower ) = |
359 |
( $returned, $messages, $issue, $borrower ) = |
351 |
AddReturn( $barcode, $userenv_branch, $exemptfine, $return_date ) |
360 |
AddReturn( $barcode, $userenv_branch, $exemptfine, $return_date ) |
352 |
- |
|
|