# if we have a transfer to complete, we update the line of transfers with the datearrived
if ($transfer) {
$validTransfer = 0;
$validTransfer = 0 unless defined $transfer->datecancelled;
if ( $transfer->in_transit ) {
if ( $transfer->tobranch eq $branch ) {
$transfer->receive;
-