MarkIssueReturned($borrowernumber,$itemnumber,undef,undef,$patron->privacy) if $mark_returned;
}
my $transfers = GetTransfers($itemnumber);
if ( C4::Context->preference('LostItemCancelOutstandingTransfers') ) {
if ( C4::Context->preference('LostItemCancelOutstandingTransfers') && $transfers ) {
DeleteTransfer($itemnumber);
my $deletedtransfer = DeleteTransfer($itemnumber);
-