C4::Items::ModItemTransfer(
$itemnumber,
$item->holdingbranch,
$checkreserves->{'branchcode'}
$checkreserves->{'branchcode'},
'Reserve'
),
;
}
$hold->cancel;
if ( $item->homebranch ne $item->holdingbranch ) {
C4::Items::ModItemTransfer( $item->itemnumber, $item->holdingbranch, $item->homebranch );
C4::Items::ModItemTransfer( $item->itemnumber, $item->holdingbranch, $item->homebranch, 'LostReserve' );
if ( my $yaml = C4::Context->preference('UpdateItemWhenLostFromHoldList') ) {
# if the document is not in his homebranch location and there is not reservation after, we transfer it
if ($transfer && !$nextreservinfo) {
ModItemTransfer( $item, $fbr, $tbr );
ModItemTransfer( $item, $fbr, $tbr, 'CancelReserve' );
# if we have a result
if ($nextreservinfo) {
-